| 程序包 | 说明 |
|---|---|
| com.github.netty.core.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> ConcurrentLinkedHashMap.EntryWeigher<K,V> |
ConcurrentLinkedHashMap.Weighers.asEntryWeigher(ConcurrentLinkedHashMap.Weigher<? super V> weigher)
A entry weigher backed by the specified weigher.
|
static <K,V> ConcurrentLinkedHashMap.EntryWeigher<K,V> |
ConcurrentLinkedHashMap.Weighers.entrySingleton()
A weigher where an entry has a weight of 1.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ConcurrentLinkedHashMap.Builder<K,V> |
ConcurrentLinkedHashMap.Builder.weigher(ConcurrentLinkedHashMap.EntryWeigher<? super K,? super V> weigher)
Specifies an algorithm to determine how many the units of capacity an
entry consumes.
|
Copyright © 2021. All rights reserved.