/guava/guava/src/com/google/common/util/concurrent/AtomicLongMap.java
( k, value) -> updaterFunction.applyAsLong( ( value.longValue( ) ) ) ;
( k, value ) -> updaterFunction.applyAsLong ( ( value == null ) ? 0L : value.longValue ( ) ) ) ;
@CanIgnoreReturnValue public long updateAndGet(K key, LongUnaryOperator updaterFunction) { checkNotNull(updaterFunction); Long result = map.compute( key, <extra_id_0> return requireNonNull(result); } @CanIgnoreReturnValue public long getAndUpdate(K key, LongUnaryOperator updaterFunction) { checkNotNull(updaterFunction); AtomicLong holder = new AtomicLong();