Examples of toArray()


Examples of org.broad.igv.data.CharArrayList.toArray()

                CharArrayList chars = new CharArrayList(10);
                while (c != '\t') {
                    chars.add(c);
                    c = is.readChar();
                }
                String nm = new String(chars.toArray()).trim();
                tmp.add(nm);
                c = is.readChar();
            }

            sampleNames = tmp.toArray(new String[]{});
View Full Code Here

Examples of org.broad.igv.util.collections.DoubleArrayList.toArray()

                } else {

                    int cnt = typeCounts.get(type) == null ? valueList.size() : typeCounts.get(type) + valueList.size();
                    typeCounts.put(type, cnt);

                    double[] vs = valueList.toArray();
                    value = StatUtils.mean(vs);
                }
                data[i] = value;

            }
View Full Code Here

Examples of org.broad.igv.util.collections.DownsampledDoubleArrayList.toArray()

        // Sort
        for (List<LocusScore> chrValues : values.values()) {
            FeatureUtils.sortFeatureList(chrValues);
        }

        double[] sd = sampledData.toArray();
        if (sd.length > 0) {
            dataMin = Math.min(0, StatUtils.percentile(sd, 5));
            dataMax = StatUtils.percentile(sd, 95);
        } else {
            dataMin = 0;
View Full Code Here

Examples of org.broad.igv.util.collections.FloatArrayList.toArray()

    public float[] getData(String heading, String chr) {
        FloatArrayList data = this.dataMap.get(chr);
        if (data == null) {
            return null;
        } else {
            return data.toArray();
        }
    }

    public String[] getFeatureNames(String chr) {
        return null;
View Full Code Here

Examples of org.broad.igv.util.collections.IntArrayList.toArray()

        long t0 = System.currentTimeMillis();
        for (int i = 0; i < NUM_POINTS; i++) {
            al.add(i);
        }
        int[] values = al.toArray();
        assertEquals(NUM_POINTS, values.length);
        assertEquals(2, values[2]);
        System.out.println("IntArrayList time: " + (System.currentTimeMillis() - t0));
    }
View Full Code Here

Examples of org.bson.BSONObject.toArray()

                continue candidates;

          }
          result.add(x);
        }
        return result.toArray(new BSONObject[0]);
      }

    }

    return new BSONObject[0];
View Full Code Here

Examples of org.bson.types.BasicBSONList.toArray()

        TypeInfo listElemTypeInfo = valueTypeInfo.getListElementTypeInfo();

        for (int i = 0; i < list.size(); i++) {
            list.set(i, deserializeField(list.get(i), listElemTypeInfo, ext));
        }
        return list.toArray();
    }


    /**
     * deserialize the struct stored in 'value' ext : the hive mapping(s) seen so far before 'value' is encountered.
View Full Code Here

Examples of org.castor.core.util.IdentitySet.toArray()

        set.add(key1);
        set.add(key2);
        set.add(key3);
        assertTrue(set.size() == 3);

        Object[] oArr = set.toArray();
        if (oArr[0] == key1) {
            if (oArr[1] == key2) {
                assertTrue(oArr[2] == key3);
            } else {
                assertTrue(oArr[2] == key2);
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilderErrors.toArray()

        KnowledgeBuilderErrors errors = kbuilder.getErrors();
        if (errors.size() > 0) {
            for (KnowledgeBuilderError error: errors) {
                System.err.println(error);
            }
            throw new IllegalArgumentException("Could not parse knowledge." + errors.toArray());
        }
        KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
        kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
        return kbase;
    }
View Full Code Here

Examples of org.eclipse.core.internal.databinding.identity.IdentitySet.toArray()

      currentStaleListener.set(lastStaleListener);
      checkUnmatchedIgnore(runnable);
      currentIgnoreCount.set(lastIgnore);
    }

    return (IObservable[]) observableSet
        .toArray(new IObservable[observableSet.size()]);
  }

  /**
   * Invokes the given runnable, and returns the set of IObservables that were
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.