Package com.google.common.hash
Class LongAddables.PureJavaLongAddable
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
com.google.common.hash.LongAddables.PureJavaLongAddable
- All Implemented Interfaces:
LongAddable
,Serializable
- Enclosing class:
LongAddables
private static final class LongAddables.PureJavaLongAddable
extends AtomicLong
implements LongAddable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.atomic.AtomicLong
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
PureJavaLongAddable
private PureJavaLongAddable()
-
-
Method Details
-
increment
public void increment()- Specified by:
increment
in interfaceLongAddable
-
add
public void add(long x) - Specified by:
add
in interfaceLongAddable
-
sum
public long sum()- Specified by:
sum
in interfaceLongAddable
-