Examples of toArray()


Examples of nexj.core.util.HashHolder.toArray()

         for (PropertyIterator itr = m_valuesMap.getIterator(); itr.hasNext();)
         {
            keySet.add(itr.next());
         }

         Object[] keyArray = keySet.toArray(new String[keySet.size()]);

         Arrays.sort(keyArray); // sort keys for readability

         throw new LookupException("err.meta.persistence.sql.variable",
                                   new Object[]{sKey, keyArray}); // unknown key
View Full Code Here

Examples of nexus.model.structs.Vector3.toArray()

 
  @Test
  public void testToArray() {
    Vector3 a = new Vector3(3f, -1f, 0f);
   
    assertEquals(true, Arrays.equals(a.toArray(), new float[] { 3f, -1f, 0f }));
  }
 
  @Test
  public void testCombined() {
    Vector3 a = new Vector3(0f, 1f, 2f);
View Full Code Here

Examples of org.antlr.misc.IntervalSet.toArray()

        stateTransitions.set(labelIndex,
                   Utils.integer(edge.target.stateNumber));
      }
      else if ( label.isSet() ) {
        IntervalSet labels = (IntervalSet)label.getSet();
        int[] atoms = labels.toArray();
        for (int a = 0; a < atoms.length; a++) {
          // set the transition if the label is valid (don't do EOF)
          if ( atoms[a]>=Label.MIN_CHAR_VALUE ) {
            int labelIndex = atoms[a]-smin; // offset from 0
            stateTransitions.set(labelIndex,
View Full Code Here

Examples of org.antlr.v4.runtime.misc.IntegerList.toArray()

  public List<String> serialized;
  public SerializedATN(OutputModelFactory factory, ATN atn) {
    super(factory);
    IntegerList data = ATNSerializer.getSerialized(atn);
    serialized = new ArrayList<String>(data.size());
    for (int c : data.toArray()) {
      String encoded = factory.getGenerator().getTarget().encodeIntAsCharEscape(c == -1 ? Character.MAX_VALUE : c);
      serialized.add(encoded);
    }
//    System.out.println(ATNSerializer.getDecoded(factory.getGrammar(), atn));
  }
View Full Code Here

Examples of org.apache.accumulo.core.data.ByteSequence.toArray()

   
    key = null;
   
    Iterator<Entry<Key,Value>> nextRow = iterator.next();
    ByteSequence row = getDataStore().populate(nextRow, persistent);
    key = (K) ((AccumuloStore) dataStore).fromBytes(getKeyClass(), row.toArray());
   
    return true;
  }
 
}
View Full Code Here

Examples of org.apache.accumulo.core.file.rfile.RelativeKey.MByteSequence.toArray()

          MByteSequence valbs = new MByteSequence(new byte[64], 0, 0);
          SkippR skippr = RelativeKey.fastSkip(currBlock, startKey, valbs, prevKey, getTopKey());
          if (skippr.skipped > 0) {
            entriesLeft -= skippr.skipped;
            val = new Value(valbs.toArray());
            prevKey = skippr.prevKey;
            rk = skippr.rk;
          }
         
          reseek = false;
View Full Code Here

Examples of org.apache.accumulo.core.util.MutableByteSequence.toArray()

          MutableByteSequence valbs = new MutableByteSequence(new byte[64], 0, 0);
          SkippR skippr = RelativeKey.fastSkip(currBlock, startKey, valbs, prevKey, getTopKey());
          if (skippr.skipped > 0) {
            entriesLeft -= skippr.skipped;
            val = new Value(valbs.toArray());
            prevKey = skippr.prevKey;
            rk = skippr.rk;
          }
         
          reseek = false;
View Full Code Here

Examples of org.apache.bcel.util.ClassVector.toArray()

      clazz != null;
      clazz = clazz.getSuperClass()) {
      vec.addElement(clazz);
    }

    return vec.toArray();
  }

  /**
   * Get interfaces directly implemented by this JavaClass.
   */
 
View Full Code Here

Examples of org.apache.clerezza.rdf.core.MGraph.toArray()

        ParsingProvider parsingProvider = new RdfJsonParsingProvider();
        ByteArrayInputStream jsonIn = new ByteArrayInputStream(serializedGraph.toByteArray());
        MGraph parsedMGraph = new SimpleMGraph();
        parsingProvider.parse(parsedMGraph, jsonIn, "application/rdf+json", null);
        Assert.assertEquals(originalSize, parsedMGraph.size());
        sortedTriples = parsedMGraph.toArray(new Triple[parsedMGraph.size()]);
        Arrays.sort(sortedTriples, RdfJsonSerializingProvider.SUBJECT_COMPARATOR);
        Assert.assertEquals(mGraph.getGraph(), parsedMGraph.getGraph());
  }
}
View Full Code Here

Examples of org.apache.clerezza.rdf.core.impl.SimpleMGraph.toArray()

        ParsingProvider parsingProvider = new RdfJsonParsingProvider();
        ByteArrayInputStream jsonIn = new ByteArrayInputStream(serializedGraph.toByteArray());
        MGraph parsedMGraph = new SimpleMGraph();
        parsingProvider.parse(parsedMGraph, jsonIn, "application/rdf+json", null);
        Assert.assertEquals(originalSize, parsedMGraph.size());
        sortedTriples = parsedMGraph.toArray(new Triple[parsedMGraph.size()]);
        Arrays.sort(sortedTriples, RdfJsonSerializingProvider.SUBJECT_COMPARATOR);
        Assert.assertEquals(mGraph.getGraph(), parsedMGraph.getGraph());
  }
}
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.