long function ( K arg0 , LongUnaryOperator arg1 ) { checkNotNull ( arg1 ) ; AtomicLong loc0 = new AtomicLong ( ) ; map . compute ( arg0 , ( k , value ) -> { long loc1 = ( value == null ) ? 0L : value . longValue ( ) ; loc0 . set ( loc1 ) ; return arg1 . applyAsLong ( loc1 ) ; } ) ; return loc0 . get ( ) ; }
updates the value currently associated with key with the specified function , and returns the old value . if there is not currently a value associated with key , the function is applied to 0l . 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 void removeAllZeros 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 getAndDecrement concode_elem_sep long putIfAbsent