Package com.tangosol.util
Class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor
java.lang.Object
com.tangosol.util.MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor
- All Implemented Interfaces:
BinaryLongMap.EntryVisitor,MultiBinaryLongMap.SafeEntryVisitor
- Enclosing class:
MultiBinaryLongMap.AbstractDelegateBinaryLongMap
protected class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor
extends Object
implements MultiBinaryLongMap.SafeEntryVisitor
DelegateEntryVisitor is a wrapper for an EntryVisitor that exposes
the logical entries of this AbstractDelegateBinaryLongMap.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classWrapperEntry is used to wrap an Entry from the master key-tree (which associates the key with the encoded slot-id) and associate it with the logical value associated with this AbstractDelegatingBinaryLongMap for the purposes of exposing to the predicate. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe (singleton) WrapperEntry that is used in the visitor iteration.protected final booleanFlag indicating whether the underlying visitor should visit only entries that logically exist.protected final intThe index of the DelegatingBinaryLongMap.protected final MultiBinaryLongMap.LongStorageThe LongStorage.protected final BinaryLongMap.EntryVisitorThe wrapped (safe) predicate to apply to the logical entries of this DelegatingBinaryLongMap. -
Constructor Summary
ConstructorsConstructorDescriptionDelegateEntryVisitor(BinaryLongMap.EntryVisitor visitor, boolean fExisting) Construct a DelegateEntryVisitor around the specified visitor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(BinaryLongMap.Entry entry) Visit the specified entry.
-
Field Details
-
f_entryTemp
protected final transient MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry f_entryTempThe (singleton) WrapperEntry that is used in the visitor iteration. -
f_visitor
The wrapped (safe) predicate to apply to the logical entries of this DelegatingBinaryLongMap. -
f_iIndex
protected final int f_iIndexThe index of the DelegatingBinaryLongMap. -
f_store
The LongStorage. -
f_fExisting
protected final boolean f_fExistingFlag indicating whether the underlying visitor should visit only entries that logically exist.
-
-
Constructor Details
-
DelegateEntryVisitor
Construct a DelegateEntryVisitor around the specified visitor.- Parameters:
visitor- the underlying EntryVisitorfExisting- true iff the underlying visitor should only visit existing entries
-
-
Method Details
-
visit
Visit the specified entry.- Specified by:
visitin interfaceBinaryLongMap.EntryVisitor- Parameters:
entry- the entry
-