| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MapMaker
A
ConcurrentMap builder, providing any combination of these
features: soft or weak keys, soft or weak values, size-based evicition, timed expiration, and
on-demand computation of values. |
| Modifier and Type | Method and Description |
|---|---|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.concurrencyLevel(int concurrencyLevel)
|
<K,V> GenericMapMaker<K,V> |
MapMaker.evictionListener(MapEvictionListener<K,V> listener)
Specifies a listener instance, which all maps built using this
MapMaker will notify each time an entry is evicted. |
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.expiration(long duration,
TimeUnit unit)
|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.expireAfterAccess(long duration,
TimeUnit unit)
|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.expireAfterWrite(long duration,
TimeUnit unit)
|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.initialCapacity(int initialCapacity)
|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.maximumSize(int maximumSize)
See
MapMaker.maximumSize. |
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.softKeys()
See
MapMaker.softKeys(). |
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.softValues()
|
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.weakKeys()
See
MapMaker.weakKeys(). |
abstract GenericMapMaker<K0,V0> |
GenericMapMaker.weakValues()
|
| Modifier and Type | Method and Description |
|---|---|
static <E> ConcurrentHashMultiset<E> |
ConcurrentHashMultiset.create(GenericMapMaker<? super E,? super Number> mapMaker)
Creates a new, empty
ConcurrentHashMultiset using mapMaker
to construct the internal backing map. |
Copyright © 2010-2012. All Rights Reserved.