Code example for SortedSet

Methods: addAll

0
        if (dependenciesPerHistorical[streamNum] != null) {
            throw new RuntimeException("Dependencies for stream " + streamNum + "already initialized");
        } 
        dependenciesPerHistorical[streamNum] = new TreeSet<Integer>();
        if (dependencies != null) {
            dependenciesPerHistorical[streamNum].addAll(dependencies);
        } 
    } 
 
    public boolean isHasHistorical() { 
        return hasHistorical;
    } 
 
    public SortedSet<Integer>[] getDependenciesPerHistorical() {
        return dependenciesPerHistorical;
    } 
 
    public boolean[] getHistorical() { 
        return isHistorical;
    } 
}