Code example for HashMap

Methods: keySet

0
     * The caller must synchronize on the {@link ClientData} object while iterating. 
     * 
     * @return an iterator over the list of heap ids 
     */ 
    public synchronized Iterator<Integer> getVmHeapIds() {
        return mHeapInfoMap.keySet().iterator();
    } 
 
    /** 
     * Returns the most-recent info values for the specified VM heap. 
     * 
     * @param heapId The heap whose info should be returned 
     * @return a map containing the info values for the specified heap. 
     *         Returns <code>null</code> if the heap ID is unknown. 
     */ 
    public synchronized Map<String, Long> getVmHeapInfo(int heapId) {
        return mHeapInfoMap.get(heapId);
    } 
 
    /** 
     * Adds a new thread to the list.