Examples of clone()


Examples of gov.nist.javax.sip.header.SIPHeader.clone()

    retval.maxForwardsHeader = null;
    if (this.headers != null) {
        retval.headers = new ConcurrentLinkedQueue<SIPHeader>();
      for (Iterator<SIPHeader> iter = headers.iterator(); iter.hasNext();) {
        SIPHeader hdr = (SIPHeader) iter.next();
        retval.attachHeader((SIPHeader) hdr.clone());
      }

    }
    if (this.messageContentBytes != null)
      retval.messageContentBytes = (byte[]) this.messageContentBytes
View Full Code Here

Examples of gov.nist.javax.sip.message.SIPRequest.clone()

             * generated as an in-Dialog request.
             */
            if challengedRequest.getToTag() != null  ||
                    challengedTransaction.getDialog() == null ||
                    challengedTransaction.getDialog().getState() != DialogState.CONFIRMED)  {
                reoriginatedRequest = (Request) challengedRequest.clone();
            } else {
                /*
                 * Re-originate the request by consulting the dialog. In particular
                 * the route set could change between the original request and the
                 * in-dialog challenge.
View Full Code Here

Examples of gri.gridp.modules.Output.clone()

      Output output = (Output)globalOutputs.get(ref);
      if (output == null)
        throw new InvalidModuleException("Reference to output '" + ref + "' was made, but output was not found in supplied output list");
      else
        return (Output)output.clone();
    }

    //parse regular:
    String paramName = element.getAttributeValue("name");
    if (paramName == null)
View Full Code Here

Examples of gri.gridp.modules.Parameter.clone()

      Parameter param = (Parameter)globalParams.get(ref);
      if (param == null)
        throw new InvalidModuleException("Reference to parameter '" + ref + "' was made, but parameter was not found in supplied parameter list");
      else
        return (Parameter)param.clone();
    }

    //type:
    String nodeName = element.getName().toLowerCase();
    String type = "string"//default
View Full Code Here

Examples of groovy.lang.Closure.clone()

        catch (GroovyRuntimeException e) {
            // br should get a "native" property match first. getProperty includes such fall-back logic
            Object value = this.getProperty(name);
            if (value instanceof Closure) {
                Closure closure = (Closure) value;
                closure = (Closure) closure.clone();
                closure.setDelegate(this);
                return closure.call((Object[]) args);
            } else {
                throw e;
            }
View Full Code Here

Examples of hudson.plugins.git.util.BuildData.clone()

        if (buildData == null) {
            return clone ? new BuildData() : null;
        }

        if (clone) {
            return buildData.clone();
        } else {
            return buildData;
        }
    }
View Full Code Here

Examples of image.processing.patterns.cluster.DoubleArray.clone()

                        vectorCount++;
     
      // Initiallly we create a cluster for each vector
      Cluster cluster = new Cluster(vector.length);
      cluster.addVector(theVector);
      cluster.setMean(theVector.clone());
      clusters.add(cluster);
    }
    reader.close(); // close the input file

    // (2) Loop to combine the two closest clusters into a bigger cluster
View Full Code Here

Examples of info.bliki.htmlcleaner.TagToken.clone()

                  WikiTagNode tagNode = parseTag(fCurrentPosition);
                  if (tagNode != null) {
                    String tagName = tagNode.getTagName();
                    TagToken tag = fWikiModel.getTokenMap().get(tagName);
                    if (tag != null) {
                      tag = (TagToken) tag.clone();

                      if (tag instanceof TagNode) {
                        TagNode node = (TagNode) tag;
                        List<NodeAttribute> attributes = tagNode.getAttributesEx();
                        Attribute attr;
View Full Code Here

Examples of info.bliki.wiki.tags.HTMLTag.clone()

        }
      }
      if (stackSize() == 0 && (node instanceof HTMLTag)) {
        HTMLTag defParent = ((HTMLTag) node).getDefaultParentTag();
        if (defParent != null) {
          pushNode((HTMLTag) defParent.clone());
        }
      }
    } else {
      while (stackSize() > 0) {
        popNode();
View Full Code Here

Examples of io.druid.segment.data.Offset.clone()

                      baseOffset, timestamps, Math.min(interval.getEndMillis(), gran.next(input))
                  );

                  return new Cursor()
                  {
                    private final Offset initOffset = offset.clone();
                    private final DateTime myBucket = gran.toDateTime(input);
                    private Offset cursorOffset = offset;

                    @Override
                    public DateTime getTime()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.