Code example for TreeMap

Methods: remove

0
 
    /** 
     * Removes a thread from the list. 
     */ 
    synchronized void removeThread(int threadId) {
        mThreadMap.remove(threadId);
    } 
 
    /** 
     * Returns the list of threads as {@link ThreadInfo} objects. 
     * <p/>The list is empty until a thread update was requested with 
     * {@link Client#requestThreadUpdate()}. 
     */ 
    public synchronized ThreadInfo[] getThreads() { 
        Collection<ThreadInfo> threads = mThreadMap.values();
        return threads.toArray(new ThreadInfo[threads.size()]);
    } 
 
    /** 
     * Returns the {@link ThreadInfo} by thread id. 
     */