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>| Modifier and Type | Method and Description |
|---|---|
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() |
@Nonnull public K getKey()
StateEntrygetKey in interface StateEntry<K,N,S>@Nonnull public N getNamespace()
StateEntrygetNamespace in interface StateEntry<K,N,S>@Nullable public S getState()
StateEntrygetState in interface StateEntry<K,N,S>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.