| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| atomicTotalSize | back to summary |
|---|---|
| private final AtomicInteger atomicTotalSize | |
| AbstractSynchronizedPutMultimap | back to summary |
|---|---|
| protected AbstractSynchronizedPutMultimap() | |
| AbstractSynchronizedPutMultimap | back to summary |
|---|---|
| protected AbstractSynchronizedPutMultimap(MutableMap<K, C> newMap) | |
| addAll | back to summary |
|---|---|
| private void addAll(C existingValues, V[] values) | |
| addToTotalSize | back to summary |
|---|---|
| protected void addToTotalSize(int value) Overrides org. Doc from org. This method is provided to allow for subclasses to provide the behavior. It should add the specified amount to the value that is returned by calling size().
| |
| clearTotalSize | back to summary |
|---|---|
| protected void clearTotalSize() Overrides org. Doc from org. This method is provided to allow for subclasses to provide the behavior. It should set the value returned by size() to 0.
| |
| createMap | back to summary |
|---|---|
| protected MutableMap Implements abstract org.
| |
| createMapWithKeyCount | back to summary |
|---|---|
| protected MutableMap Implements abstract org.
| |
| decrementTotalSize | back to summary |
|---|---|
| protected void decrementTotalSize() Overrides org. Doc from org. This method is provided to allow for subclasses to provide the behavior. It should remove 1 from the value that is returned by calling size().
| |
| getIfAbsentPutAll | back to summary |
|---|---|
| public C getIfAbsentPutAll(K key, Iterable<? extends V> values) Overrides org. Implements org. Doc from org. Puts values into multimap if there are no values already associated with key.
Then returns a view of the values associated with key, like the result of
| |
| getIfAbsentPutCollection | back to summary |
|---|---|
| private C getIfAbsentPutCollection(K key) Hides org. | |
| incrementTotalSize | back to summary |
|---|---|
| protected void incrementTotalSize() Overrides org. Doc from org. This method is provided to allow for subclasses to provide the behavior. It should add 1 to the value that is returned by calling size().
| |
| put | back to summary |
|---|---|
| public boolean put(K key, V value) Overrides org. Implements org.
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. Implements org. Doc from org. Use the size method directly instead of totalSize internally so subclasses can override if necessary.
| |
| subtractFromTotalSize | back to summary |
|---|---|
| protected void subtractFromTotalSize(int value) Overrides org. Doc from org. This method is provided to allow for subclasses to provide the behavior. It should subtract the specified amount from the value that is returned by calling size().
| |
| withKeyMultiValues | back to summary |
|---|---|
| public MutableMultimap Overrides default org. Doc from org. Puts the key / values combination into the MutableMultimap and returns the MutableMultimap (this).
| |