Code example for TreeMap

Methods: lastKey, size

0
 
//Javadoc inherited. 
    public SampleStatistics[] getAllSampleStat() { 
        SampleStatistics[] allStats = null;
        SimpleStatsTally temp;
        if (indexedStats.size() > 0) {
            int high = indexedStats.lastKey();
            int length = high + 1;
            allStats = new SampleStatistics[length];
            for (int i = 0; i < allStats.length; i++) {
                temp = (SimpleStatsTally) indexedStats.get(new Integer(i));
                allStats[i] = temp != null ? (SampleStatistics) temp.clone() :
                    new SimpleStatsTally(this.getName());
            } 
        } 
        return allStats;
    } 
 
//Javadoc inherited. 
    public double[] getAllMaxObs() { 
        double[] max = null;