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>
@Nonnull public K getKey()
StateEntry
getKey
在接口中 StateEntry<K,N,S>
@Nonnull public N getNamespace()
StateEntry
getNamespace
在接口中 StateEntry<K,N,S>
@Nullable public S getState()
StateEntry
getState
在接口中 StateEntry<K,N,S>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.