K
- type of key.N
- type of namespace.S
- type of state.@VisibleForTesting protected static class CopyOnWriteStateTable.StateTableEntry<K,N,S> extends Object implements StateEntry<K,N,S>
CopyOnWriteStateTable
. 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 CopyOnWriteStateTable.StateTableEntry
s to a list, and cached hash code.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()
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–2020 The Apache Software Foundation. All rights reserved.