Examples of duplicate()


Examples of org.joshy.sketch.model.SNode.duplicate()

                    if(event.getX() < 0 && prevx >= 0 && !created) {
                        created = true;
                        if(listView.getSelectedIndex() < 0) return;
                        SNode node = listView.getModel().get(listView.getSelectedIndex());
                        SketchDocument sd = context.getDocument();
                        dupe = node.duplicate(null);
                        Bounds b = dupe.getBounds();
                        sd.getCurrentPage().add(dupe);
                        Point2D pt = event.getPointInNodeCoords(context.getCanvas());
                        pt = context.getSketchCanvas().transformToCanvas(pt);
                        dupe.setTranslateX(pt.getX()-b.getWidth()/2);
View Full Code Here

Examples of org.nasutekds.server.replication.common.ServerState.duplicate()

    ServerState dbState = this.getDbServerState();

    // The result is initialized from the dbState.
    // From it, we don't want to keep the changes newer than eligibleCN.
    result = dbState.duplicate();

    if (eligibleCN != null)
    {
      Iterator<Integer> it = dbState.iterator();
      while (it.hasNext())
View Full Code Here

Examples of org.nasutekds.server.types.Entry.duplicate()

                ResultCode.NO_SUCH_OBJECT, m, matchedDN, null);
      }

      if (baseEntry != null)
      {
        baseEntry = baseEntry.duplicate(true);
      }

      // If it's a base-level search, then just get that entry and return it if
      // it matches the filter.
      if (scope == SearchScope.BASE_OBJECT)
View Full Code Here

Examples of org.ow2.easybeans.api.loader.EZBClassLoader.duplicate()

     * @return Temporary ClassLoader with same visibility as current loader
     */
    public ClassLoader getNewTempClassLoader() {
        if (this.classLoader instanceof EZBClassLoader) {
            EZBClassLoader currentCL = (EZBClassLoader) this.classLoader;
            return currentCL.duplicate();
        }
        // else, try to see if it's an URL classLoader
        if (this.classLoader instanceof URLClassLoader) {
            return new URLClassLoader(((URLClassLoader) this.classLoader).getURLs(), this.classLoader.getParent());
        }
View Full Code Here

Examples of org.red5.server.net.rtmp.event.Notify.duplicate()

          } else if (rtmpEvent instanceof Notify) {
            // store the metadata
            Notify notifyEvent = (Notify) rtmpEvent;
            if (metaData == null && notifyEvent.getHeader().getDataType() == Notify.TYPE_STREAM_METADATA) {
              try {
                metaData = notifyEvent.duplicate();
              } catch (Exception e) {
                log.warn("Metadata could not be duplicated for this stream", e);
              }
            }
            eventTime = rtmpEvent.getTimestamp();
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.types.Action.duplicate()

        /**
         * Create a structure to hold 1 integer action and set the value
         */
        Action returnAction = new Action(1, 0, 0);
        returnAction.intArray[0] = theIntAction;
        lastAction = returnAction.duplicate();
        lastObservation = observation.duplicate();
        return returnAction;
    }
   
    public Action agent_step(double reward, Observation observation)
View Full Code Here

Examples of org.zeromq.ZFrame.duplicate()

        }
        //  2. Wait until we get a reply
        while (!Thread.currentThread().isInterrupted()) {
            Thread.sleep(100);
            request = new ZMsg();
            request.add(uuid.duplicate());
            reply = serviceCall(
                    session, "titanic.reply", request);

            if (reply != null) {
                String replyString = reply.getLast().toString();
View Full Code Here

Examples of railo.runtime.type.Struct.duplicate()

    Element[] elConstants = getChildren(constant, "constant");
    Struct sct = null;
    if (hasCS) {
      sct = configServer.getConstants();
      if (sct != null)
        sct = (Struct) sct.duplicate(false);
    }
    if (sct == null)
      sct = new StructImpl();
    String name;
    for (int i = 0; i < elConstants.length; i++) {
View Full Code Here

Examples of railo.runtime.type.UDF.duplicate()

              done=true;
            }
          }
          // udf with no owner
          if(!done)
            trg.put(key, udf.duplicate());
         
          //print.o(owner.pageSource.getComponentName()+":"+udf.getFunctionName());
        }
      }
  }
View Full Code Here

Examples of railo.runtime.video.VideoProfile.duplicate()

        "valid values are [error,skip,overwrite,makeunique]");
  }

  public void setProfile(String strProfile) throws PageException {
    VideoProfile p = getProfile(strProfile);
    if(p!=null)profile=p.duplicate();
    else throw doThrow("invalid profile defintion ["+strProfile+"], valid profiles are ["+getProfileKeyList()+"]");
  }

  public void setExecution(String execution) throws PageException {
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.