| Package | Description |
|---|---|
| oracle.wsm.common.sdk |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> EntryWeigher<K,V> |
Weighers.asEntryWeigher(Weigher<? super V> weigher)
A entry weigher backed by the specified weigher.
|
static <K,V> EntryWeigher<K,V> |
Weighers.entrySingleton()
A weigher where an entry has a weight of 1.
|
| Modifier and Type | Method and Description |
|---|---|
LRUCache.Builder<K,V> |
LRUCache.Builder.weigher(EntryWeigher<? super K,? super V> weigher)
Specifies an algorithm to determine how many the units of capacity an
entry consumes.
|