Class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry

  • All Implemented Interfaces:
    BinaryLongMap.Entry
    Enclosing class:
    MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor

    protected class MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor.WrapperEntry
    extends Object
    implements BinaryLongMap.Entry
    WrapperEntry 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. The purpose of the WrapperEntry is to limit the amount
    • Constructor Detail

      • WrapperEntry

        protected WrapperEntry()
    • Method Detail

      • getValue

        public long getValue()
        Obtain the value associated with this entry.
        Specified by:
        getValue in interface BinaryLongMap.Entry
        Returns:
        the associated value as a long
      • setValue

        public BinaryLongMap.Entry setValue​(long lValue)
        Set the value associated with this entry.

        Note: in some implementations, this operation may cause this Entry to be replaced with another Entry instance in the underlying representation.

        Specified by:
        setValue in interface BinaryLongMap.Entry
        Parameters:
        lValue - the value to associate with this entry
        Returns:
        an BinaryLongMap.Entry with the new value, which may or may not be the same BinaryLongMap.Entry as this
      • reset

        public void reset​(BinaryLongMap.Entry entry)
        Reset the WrapperEntry to represent a different underlying Entry.
        Parameters:
        entry - the new entry to wrap