Klasse AbstractLong2ObjectMap.BasicEntry<V>

java.lang.Object
speiger.src.collections.longs.maps.abstracts.AbstractLong2ObjectMap.BasicEntry<V>
Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Map.Entry<Long,V>, Long2ObjectMap.Entry<V>
Bekannte direkte Unterklassen:
Long2ObjectMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractLong2ObjectMap<V>

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

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

      public BasicEntry(Long 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(long 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(long 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
    • getLongKey

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

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

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

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

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

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