Uses of Interface
org.miaixz.bus.core.center.map.concurrent.Weigher
Packages that use Weigher
Package
Description
-
Uses of Weigher in org.miaixz.bus.core.center.map.concurrent
Methods in org.miaixz.bus.core.center.map.concurrent that return WeigherModifier and TypeMethodDescriptionstatic Weigher<byte[]> Weighers.byteArray()A weigher where the value is a byte array and its selector is the number of bytes.static <E> Weigher<? super Collection<E>> Weighers.collection()A weigher where the value is aCollectionand its selector is the number of elements.Weighers.iterable()A weigher where the value is aIterableand its selector is the number of elements.Weighers.list()A weigher where the value is aListand its selector is the number of elements.Weighers.map()A weigher where the value is aMapand its selector is the number of entries.Weighers.set()A weigher where the value is aSetand its selector is the number of elements.static <V> Weigher<V> Weighers.singleton()A weigher where a value has a selector of 1.Methods in org.miaixz.bus.core.center.map.concurrent with parameters of type WeigherModifier and TypeMethodDescriptionstatic <K,V> EntryWeigher <K, V> Weighers.asEntryWeigher(Weigher<? super V> weigher) A entry weigher backed by the specified weigher.Specifies an algorithm to determine how many the units of capacity a value consumes.