Top Description Inners Fields Constructors Methods
com.google.common.cache

pack-priv final Class LongAddables

extends Object
Class Inheritance
Annotations
@GwtCompatible
emulated:true
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, com.google.common.base.Supplier, java.util.concurrent.atomic.AtomicLong

Source of LongAddable objects that deals with GWT, Unsafe, and all that.
Author
Louis Wasserman

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Supplier<LongAddable>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static LongAddable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SUPPLIERback to summary
private static final Supplier<LongAddable> SUPPLIER

Constructor Detail

LongAddablesback to summary
pack-priv LongAddables()

Method Detail

createback to summary
public static LongAddable create()
com.google.common.cache back to summary

private final Class LongAddables.PureJavaLongAddable

extends AtomicLong
implements LongAddable
Class Inheritance
All Implemented Interfaces
com.google.common.cache.LongAddable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
public long
Inherited from java.util.concurrent.atomic.AtomicLong:
accumulateAndGetaddAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetdecrementAndGetdoubleValuefloatValuegetgetAcquiregetAndAccumulategetAndAddgetAndDecrementgetAndIncrementgetAndSetgetAndUpdategetOpaquegetPlainincrementAndGetintValuelazySetlongValuesetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Constructor Detail

PureJavaLongAddableback to summary
private PureJavaLongAddable()

Method Detail

addback to summary
public void add(long x)

Implements com.google.common.cache.LongAddable.add.

Annotations
@Override
incrementback to summary
public void increment()

Implements com.google.common.cache.LongAddable.increment.

Annotations
@Override
sumback to summary
public long sum()

Implements com.google.common.cache.LongAddable.sum.

Annotations
@Override