K - type of key.N - type of namespace.S - type of state.@VisibleForTesting protected static class CopyOnWriteStateMap.StateMapEntry<K,N,S> extends Object implements StateEntry<K,N,S>
CopyOnWriteStateMap. This is a triplet of key, namespace, and state.
Thereby, key and namespace together serve as a composite key for the state. This class also
contains some management meta data for copy-on-write, a pointer to link other CopyOnWriteStateMap.StateMapEntrys to a list, and cached hash code.StateEntry.SimpleStateEntry<K,N,S>| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
K |
getKey()
Returns the key of this entry.
|
N |
getNamespace()
Returns the namespace of this entry.
|
S |
getState()
Returns the state of this entry.
|
int |
hashCode() |
void |
setState(S value,
int mapVersion) |
String |
toString() |
filterOrTransform@Nonnull public K getKey()
StateEntrygetKey 在接口中 StateEntry<K,N,S>@Nonnull public N getNamespace()
StateEntrygetNamespace 在接口中 StateEntry<K,N,S>@Nullable public S getState()
StateEntrygetState 在接口中 StateEntry<K,N,S>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.