Class ArrayMap.Entry

java.lang.Object
org.plumelib.util.ArrayMap.Entry
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
ArrayMap<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>

final class ArrayMap.Entry extends Object implements Map.Entry<K,V>
An entrySet() entry. Tracks the containing list and the index.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) @org.checkerframework.checker.index.qual.NonNegative int
    The index.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(@org.checkerframework.checker.index.qual.NonNegative int index)
    Creates a new map entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@GuardSatisfied @Nullable @UnknownSignedness Object o)
     
     
     
    int
     
    setValue(V value)
     
    private ArrayMap<K,V>
    Returns the ArrayMap associated with this entry.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • index

      @org.checkerframework.checker.index.qual.NonNegative int index
      The index.
  • Constructor Details

    • Entry

      @Pure public Entry(@org.checkerframework.checker.index.qual.NonNegative int index)
      Creates a new map entry.
      Parameters:
      index - the index
  • Method Details

    • getKey

      @Pure public K getKey()
      Specified by:
      getKey in interface Map.Entry<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>
    • getValue

      @Pure public V getValue()
      Specified by:
      getValue in interface Map.Entry<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>
    • setValue

      public V setValue(V value)
      Specified by:
      setValue in interface Map.Entry<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>
    • theArrayMap

      @Pure private ArrayMap<K,V> theArrayMap()
      Returns the ArrayMap associated with this entry.
      Returns:
      the ArrayMap associated with this entry
    • equals

      @Pure public boolean equals(@GuardSatisfied @Nullable @UnknownSignedness Object o)
      Specified by:
      equals in interface Map.Entry<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>
      Overrides:
      equals in class Object
    • hashCode

      @Pure public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<K extends @UnknownSignedness Object,V extends @UnknownSignedness Object>
      Overrides:
      hashCode in class Object