Code example for ConcurrentHashMap

Methods: get

0
 
    /** 
     *  @return current count 
     */ 
    public int count(K h) {
        AtomicInteger i = this.map.get(h);
        if (i != null)
            return i.get();
        return 0; 
    } 
 
    /** 
     *  @return set of objects with counts > 0 
     */ 
    public Set<K> objects() {
        return this.map.keySet();
    } 
 
    /** 
     *  start over 
     *  @since 0.7.11