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.StateMapEntry
s 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filterOrTransform
@Nonnull public K getKey()
StateEntry
getKey
in interface StateEntry<K,N,S>
@Nonnull public N getNamespace()
StateEntry
getNamespace
in interface StateEntry<K,N,S>
@Nullable public S getState()
StateEntry
getState
in interface StateEntry<K,N,S>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.