Uses of Interface
com.googlecode.concurrentlinkedhashmap.Weigher
-
Uses of Weigher in com.googlecode.concurrentlinkedhashmap
Methods in com.googlecode.concurrentlinkedhashmap that return WeigherModifier and TypeMethodDescriptionstatic Weigher<byte[]> Weighers.byteArray()A weigher where the value is a byte array and its weight is the number of bytes.static <E> Weigher<? super Collection<E>> Weighers.collection()A weigher where the value is aCollectionand its weight is the number of elements.Weighers.iterable()A weigher where the value is aIterableand its weight is the number of elements.Weighers.list()A weigher where the value is aListand its weight is the number of elements.Weighers.map()A weigher where the value is aMapand its weight is the number of entries.Weighers.set()A weigher where the value is aSetand its weight is the number of elements.static <V> Weigher<V> Weighers.singleton()A weigher where a value has a weight of 1.Methods in com.googlecode.concurrentlinkedhashmap 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.