Code example for TreeMap

Methods: clear

0
    synchronized ThreadInfo getThread(int threadId) {
        return mThreadMap.get(threadId);
    } 
 
    synchronized void clearThreads() { 
        mThreadMap.clear();
    } 
 
    /** 
     * Returns the list of {@link NativeAllocationInfo}. 
     * @see Client#requestNativeHeapInformation() 
     */ 
    public synchronized List<NativeAllocationInfo> getNativeAllocationList() {
        return Collections.unmodifiableList(mNativeAllocationList);
    } 
 
    /** 
     * adds a new {@link NativeAllocationInfo} to the {@link Client} 
     * @param allocInfo The {@link NativeAllocationInfo} to add. 
     */ 
    synchronized void addNativeAllocation(NativeAllocationInfo allocInfo) {