Package | Description |
---|---|
com.toolsverse.util.concurrentlinkedhashmap |
This package contains an implementation of a bounded
ConcurrentMap data structure. |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ConcurrentLinkedHashMap.BoundedEntryWeigher<K,V>
A weigher that enforces that the weight falls within a valid range.
|
(package private) static class |
Weighers.EntryWeigherView<K,V> |
(package private) static class |
Weighers.SingletonEntryWeigher |
Modifier and Type | Field and Description |
---|---|
(package private) EntryWeigher<? super K,? super V> |
ConcurrentLinkedHashMap.weigher |
(package private) EntryWeigher<? super K,? super V> |
ConcurrentLinkedHashMap.BoundedEntryWeigher.weigher |
(package private) EntryWeigher<? super K,? super V> |
ConcurrentLinkedHashMap.SerializationProxy.weigher |
(package private) EntryWeigher<? super K,? super V> |
ConcurrentLinkedHashMap.Builder.weigher |
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 |
---|---|
ConcurrentLinkedHashMap.Builder<K,V> |
ConcurrentLinkedHashMap.Builder.weigher(EntryWeigher<? super K,? super V> weigher)
Specifies an algorithm to determine how many the units of capacity an
entry consumes.
|
Constructor and Description |
---|
BoundedEntryWeigher(EntryWeigher<? super K,? super V> weigher) |
Copyright © 2010-2020 Toolsverse. All Rights Reserved.