Class SplayMap.ImmutableSplayMapEntry

  • All Implemented Interfaces:
    java.util.Map.Entry<UnsignedInteger,​E>
    Enclosing class:
    SplayMap<E>

    public class SplayMap.ImmutableSplayMapEntry
    extends java.lang.Object
    implements java.util.Map.Entry<UnsignedInteger,​E>
    An immutable Map entry that can be used when exposing raw entry mappings via the Map API.
    • Constructor Detail

      • ImmutableSplayMapEntry

        public ImmutableSplayMapEntry​(SplayMap.SplayedEntry<E> entry)
        Create a new immutable Map entry.
        Parameters:
        entry - The inner Map entry that is wrapped.
    • Method Detail

      • getPrimitiveKey

        public int getPrimitiveKey()
        Returns:
        the primitive integer view of the unsigned key.
      • getValue

        public E getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<UnsignedInteger,​E>
      • setValue

        public E setValue​(E value)
        Specified by:
        setValue in interface java.util.Map.Entry<UnsignedInteger,​E>