Klasse AbstractObject2LongMap.BasicEntry<T>

java.lang.Object
speiger.src.collections.objects.maps.abstracts.AbstractObject2LongMap.BasicEntry<T>
Typparameter:
T - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
Map.Entry<T,Long>, Object2LongMap.Entry<T>
Bekannte direkte Unterklassen:
Object2LongMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractObject2LongMap<T>

public static class AbstractObject2LongMap.BasicEntry<T> extends Object implements Object2LongMap.Entry<T>
A Simple Type Specific Entry class to reduce boxing/unboxing
  • Konstruktordetails

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

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

    • set

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

      public T getKey()
      Angegeben von:
      getKey in Schnittstelle Map.Entry<T,Long>
    • getLongValue

      public long getLongValue()
      Beschreibung aus Schnittstelle kopiert: Object2LongMap.Entry
      Type Specific getValue method that reduces boxing/unboxing
      Angegeben von:
      getLongValue in Schnittstelle Object2LongMap.Entry<T>
      Gibt zurück:
      the value of a given Entry
    • setValue

      public long setValue(long value)
      Beschreibung aus Schnittstelle kopiert: Object2LongMap.Entry
      Type Specific setValue method that reduces boxing/unboxing
      Angegeben von:
      setValue in Schnittstelle Object2LongMap.Entry<T>
      Parameter:
      value - the new Value that should be placed in the given entry
      Gibt zurück:
      the old value of a given entry
    • equals

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

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

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