removes all mappings from this map whose values are zero . this method is not atomic : the map may be visible in intermediate states , where some of the zero values have been removed and others have not . concode_field_sep Map<K,Long> asMap concode_elem_sep ConcurrentHashMap<K,Long> map concode_field_sep long getAndIncrement concode_elem_sep long incrementAndGet concode_elem_sep Map<K,Long> createAsMap concode_elem_sep Map<K,Long> asMap concode_elem_sep boolean removeIfZero concode_elem_sep boolean replace concode_elem_sep long decrementAndGet concode_elem_sep long updateAndGet concode_elem_sep long sum concode_elem_sep long put concode_elem_sep long remove concode_elem_sep boolean remove concode_elem_sep long get concode_elem_sep void putAll concode_elem_sep AtomicLongMap<K> create concode_elem_sep AtomicLongMap<K> create concode_elem_sep long getAndAdd concode_elem_sep long getAndAccumulate concode_elem_sep long accumulateAndGet concode_elem_sep boolean containsKey concode_elem_sep boolean isEmpty concode_elem_sep void clear concode_elem_sep int size concode_elem_sep long addAndGet concode_elem_sep String toString concode_elem_sep long getAndUpdate concode_elem_sep long getAndDecrement concode_elem_sep long putIfAbsent
void function ( ) { map . values ( ) . removeIf ( x -> x == 0 ) ; }