Klasse AbstractShort2ObjectMap.BasicEntry<V>

java.lang.Object
speiger.src.collections.shorts.maps.abstracts.AbstractShort2ObjectMap.BasicEntry<V>
Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Map.Entry<Short,V>, Short2ObjectMap.Entry<V>
Bekannte direkte Unterklassen:
Short2ObjectMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractShort2ObjectMap<V>

public static class AbstractShort2ObjectMap.BasicEntry<V> extends Object implements Short2ObjectMap.Entry<V>
A Simple Type Specific Entry class to reduce boxing/unboxing
  • Konstruktordetails

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

      public BasicEntry(Short key, V value)
      A Boxed Constructor for supporting java variants
      Parameter:
      key - the key of a entry
      value - the value of a entry
    • BasicEntry

      public BasicEntry(short key, V value)
      A Type Specific Constructor
      Parameter:
      key - the key of a entry
      value - the value of a entry
  • Methodendetails

    • set

      public void set(short key, V value)
      A Helper method for fast replacing values
      Parameter:
      key - the key that should be replaced
      value - the value that should be replaced
    • getShortKey

      public short getShortKey()
      Beschreibung aus Schnittstelle kopiert: Short2ObjectMap.Entry
      Type Specific getKey method that reduces boxing/unboxing
      Angegeben von:
      getShortKey in Schnittstelle Short2ObjectMap.Entry<V>
      Gibt zurück:
      the key of a given Entry
    • getValue

      public V getValue()
      Angegeben von:
      getValue in Schnittstelle Map.Entry<Short,V>
    • setValue

      public V setValue(V value)
      Angegeben von:
      setValue in Schnittstelle Map.Entry<Short,V>
    • equals

      public boolean equals(Object obj)
      Angegeben von:
      equals in Schnittstelle Map.Entry<Short,V>
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Angegeben von:
      hashCode in Schnittstelle Map.Entry<Short,V>
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object