Code example for TreeSet

0
 
    private TraceCollections() { 
    } 
 
    private static final Collection<ITreeNode> filesList = Collections
            .synchronizedSortedSet(new TreeSet<ITreeNode>());
    private static final Collection<ITreeNode> tracesList = Collections
            .synchronizedList(new ArrayList<ITreeNode>());
 
    /** 
     * Returns collection of nodes that represents files with tracing results. 
     *  
     * @return list 
     */ 
    public static Collection<ITreeNode> getFilesList() {
        return filesList;
    } 
 
    /** 
     * Returns collection of nodes that represents trace events. 
     *