Code example for ConcurrentHashMap

Methods: values

0
    public void clear() { 
        map.clear();
    } 
 
    public Iterator<T> iterator() {
        return map.values().iterator();
    } 
 
    public Object[] currentState() {
        return new Object[]{map};
    } 
 
    public void restoreState(Object[] objects) {
        map = (ConcurrentHashMap<String, T>) objects[0];
    } 
 
    public int size() { 
        return map.size();
    } 
 
}