Examples of copy()


Examples of cofh.repack.codechicken.lib.vec.Vector3.copy()

   * @return A Cuboid6 containing all the verts in this model
   */
  public Cuboid6 bounds() {

    Vector3 vec1 = verts[0].vec;
    Cuboid6 c = new Cuboid6(vec1.copy(), vec1.copy());
    for (int i = 1; i < verts.length; i++) {
      c.enclose(verts[i].vec);
    }
    return c;
  }
View Full Code Here

Examples of com.alu.e3.installer.command.ICommand.copy()

                  URL urlPackage = new URL(config.getPackageUrl());
                  String strFilename;
                  if (urlPackage.getProtocol().equals("file"))
                  {
                    strFilename = new File(urlPackage.getFile()).getName();
                    cmd.copy(urlPackage.getFile(), config.getRemotePath() + "/" + strFilename);
                   
                  } else {
                    /* TODO: handle HTTP package URL ? */
                    if(logger.isDebugEnabled()) {
                      logger.debug("URL type " + urlPackage.getProtocol() + " is not supported yet.");
View Full Code Here

Examples of com.alvazan.orm.api.z5api.IndexColumnInfo.copy()

    if(cachedIter == null)
      return null;
    else if(!cachedIter.hasNext())
      return null;
    IndexColumnInfo next = cachedIter.next();
    return new Holder<IndexColumnInfo>(next.copy());
  }
 
  private Holder<IndexColumnInfo> fetchPreviousFromCache() {
    if(cachedIter == null)
      return null;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.action.IndexColumn.copy()

    String colFamily = action.getIndexCfName();
    Table table = lookupColFamily(colFamily, (NoSqlEntityManager) ormSession);
    byte[] rowKey = action.getRowKey();
    IndexColumn column = action.getColumn();
    IndexedRow row = (IndexedRow) table.findOrCreateRow(rowKey);
    row.addIndexedColumn(column.copy());
  }



  private void removeIndex(RemoveIndex action, NoSqlEntityManager ormSession) {
View Full Code Here

Examples of com.artemis.reference.Ship.copy()

    World w = new World();
    w.initialize();
   
    Ship shipFactory = w.createFactory(Ship.class);
    Entity e1 = shipFactory.hitPoints(100).create();
    Entity e2 = shipFactory.copy().hitPoints(200).create();
   
    assertEquals(100, e1.getComponent(HitPoints.class).hitpoints);
    assertEquals(200, e2.getComponent(HitPoints.class).hitpoints);
  }
 
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.ParticleEffect.copy()

  public ParticleEffect openEffect (File file, boolean replaceCurrentWorkspace) {
    try {
      ParticleEffect loadedEffect = load(file.getAbsolutePath(), ParticleEffect.class, null,
        new ParticleEffectLoader.ParticleEffectLoadParameter(particleSystem.getBatches()));
      loadedEffect = loadedEffect.copy();
      loadedEffect.init();
      if(replaceCurrentWorkspace){
        effect = loadedEffect;
        controllersData.clear();
        particleSystem.removeAll();
View Full Code Here

Examples of com.barchart.feed.base.bar.api.MarketDoBar.copy()

    if (currDate.asMillisUTC() < date.asMillisUTC()) {

      // log.debug("New session: old=" + currDate + "; new=" + date);

      // Roll values to previous
      prev.copy(bar);

      // Reset current
      bar.clear();
      bar.set(MarketBarField.TRADE_DATE, date);
      // Copy last updated time from previous session for continuity
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.go.board.elements.position.GoStone.copy()

        int max = boardSize - (min-1);
        int mid = (boardSize >> 1) + 1;

        // add the star points
        GoStone handicapStone = new GoStone(true, HANDICAP_STONE_HEALTH);
        starPoints_.add( new GoBoardPosition( min, min, null, handicapStone.copy()) );
        starPoints_.add( new GoBoardPosition( max, max, null, handicapStone.copy()) );
        starPoints_.add( new GoBoardPosition( min, max, null, handicapStone.copy()) );
        starPoints_.add( new GoBoardPosition( max, min, null, handicapStone.copy()) );
        starPoints_.add( new GoBoardPosition( min, mid, null, handicapStone.copy()) );
        starPoints_.add( new GoBoardPosition( max, mid, null, handicapStone.copy()) );
View Full Code Here

Examples of com.barrybecker4.optimization.parameter.ParameterArray.copy()

            if (fitness > bestFitness.getFitness()) {
                bestFitness = eworker.getCandidate();
            }
        }

        return bestFitness.copy();
    }


    /** Does the evaluation for each candidate in a different thread. */
    class EvaluationWorker implements Runnable {
View Full Code Here

Examples of com.caucho.quercus.env.SessionArrayValue.copy()

    if (session != null && ! session.getId().equals(key))
      throw new IllegalStateException(key + " != " + session.getId());

    if (session != null) {
      if (session.inUse()) {
        return (SessionArrayValue)session.copy(env);
      }
    }

    if (session == null)
      return null;
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.