Examples of copy()


Examples of dovetaildb.bytes.Bytes.copy()

      final ArrayList<Bytes> termsForQuery = new ArrayList<Bytes>();
      final ArrayList<Bytes> terms = new ArrayList<Bytes>();
      for(int i=r.nextInt(10); i>=0; i--) {
        Bytes bytes = randTerm(r);
        terms.add(bytes);
        termsForQuery.add(bytes.copy());
      }
      node = index.getTerms(termsForQuery, revNum);
      matches = new Filter<Bytes>(){
        public MatchReq filter(Bytes item) {
          return terms.contains(item) ? MatchReq.mustmatch : MatchReq.nomatch;
View Full Code Here

Examples of eas.miscellaneous.system.FileCopy.copy()

            if (f.isFile()) {
                final File f2 = new File(
                        target.getAbsolutePath()
                                + File.separatorChar
                                + f.getName());
                kopieren.copy(f, f2);
            }
        }
    }

    private void copyFolder(File src, File dest) throws IOException {
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.datastructure.EDBUnit.copy()

      if( strChild1.equalsIgnoreCase("DMP") ){
        EDB.This().get("ROOT.NET_INFO.CURRENT_ENGINE").setData("DMP");
        EDBUnit e = EDB.This().get("ROOT.ENGINES.DMP");
        e.removeAllChildren();
        EDBUnit nodesE = e.create("NODES");
        nodesE.copy(EDB.This().get("ROOT.NODES"));
       
        DirectMessagePassing DMP =  new DirectMessagePassing();
        DMP.run();
      }else     
      if( strChild1.equalsIgnoreCase("LW") ){
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.copy()

   */
  public void checkCorrectnessOfMerging(String machineToMerge, String expectedFSM,
      String stateBlue, String stateRed, String graphName, boolean checkWithEquals)
  {
    DirectedSparseGraph g=FsmParser.buildGraph(machineToMerge, graphName),
      g2=(DirectedSparseGraph)g.copy();
    Vertex
      a = DeterministicDirectedSparseGraph.findVertex(JUConstants.LABEL, new VertexID(stateRed), g),
      b = DeterministicDirectedSparseGraph.findVertex(JUConstants.LABEL, new VertexID(stateBlue), g);
       
    Assert.assertNotNull("state "+stateRed+" was not found", a);
View Full Code Here

Examples of erogenousbeef.core.common.CoordTriplet.copy()

        // Get list of normals
        int bladeLength;
        ForgeDirection bladeDir;
        for(int bladeIdx = 0; bladeIdx < dirsToCheck.length; bladeIdx++) {
          bladeDir = dirsToCheck[bladeIdx];
          bladeCoord.copy(currentCoord);
          bladeCoord.translate(bladeDir);
          bladeLength = 0;
          while(worldObj.getBlock(bladeCoord.x, bladeCoord.y, bladeCoord.z) == BigReactors.blockTurbineRotorPart && bladeLength < 32) {
            bladeLength++;
            bladeCoord.translate(bladeDir);
View Full Code Here

Examples of flex2.compiler.util.NameMappings.copy()

    {
        data = new LibraryData();
        data.configuration = localOEMConfiguration.configuration;
        data.cacheName = cacheName;

        NameMappings mappings = CompilerAPI.getNameMappings(localOEMConfiguration.configuration), copy = mappings.copy();

        CompilerConfiguration compilerConfig = localOEMConfiguration.configuration.getCompilerConfiguration();
        compilerConfig.setMetadataExport(true);

        if (output != null || directory != null)
View Full Code Here

Examples of freenet.keys.USK.copy()

  }

  public void start(USKManager manager, ClientContext context) {
    USK usk = origUSK;
    if(usk.suggestedEdition < edition)
      usk = usk.copy(edition);
    else if(persistent) // Copy it to avoid deactivation issues
      usk = usk.copy();
    fetcher = manager.getFetcher(usk, ctx, new USKFetcherWrapper(usk, priority, realTimeFlag ? USKManager.rcRT : USKManager.rcBulk), keepLastData, checkStoreOnly);
    fetcher.addCallback(this);
    fetcher.schedule(context); // non-persistent
View Full Code Here

Examples of gololang.GoloStruct.copy()

      struct.get("foo");
      fail("An IllegalArgumentException was expected");
    } catch (IllegalArgumentException ignored) {
    }

    struct = struct.copy();
    struct.set("name", "John");
    assertThat(struct.get("name"), is((Object) "John"));
    try {
      struct.set("foo", "bar");
      fail("An IllegalArgumentException was expected");
View Full Code Here

Examples of hudson.model.Hudson.copy()

        if (h.getItem(dst)!=null) {
            stderr.println("Job '"+dst+"' already exists");
            return -1;
        }
       
        h.copy(src,dst);
        Job newJob = (Job)Hudson.getInstance().getItem(dst);
        if (forceSave && null != newJob) {
            newJob.save();
        }
        return 0;
View Full Code Here

Examples of io.netty.buffer.ByteBuf.copy()

        DiskAttribute attr = new DiskAttribute(getName());
        attr.setCharset(getCharset());
        ByteBuf content = data();
        if (content != null) {
            try {
                attr.setContent(content.copy());
            } catch (IOException e) {
                throw new ChannelException(e);
            }
        }
        return attr;
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.