Klasse AbstractShort2FloatMap.BasicEntry

java.lang.Object
speiger.src.collections.shorts.maps.abstracts.AbstractShort2FloatMap.BasicEntry
Alle implementierten Schnittstellen:
Map.Entry<Short,Float>, Short2FloatMap.Entry
Bekannte direkte Unterklassen:
Short2FloatMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractShort2FloatMap

public static class AbstractShort2FloatMap.BasicEntry extends Object implements Short2FloatMap.Entry
A Simple Type Specific Entry class to reduce boxing/unboxing
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    A basic Empty constructor
    BasicEntry(short key, float value)
    A Type Specific Constructor
    BasicEntry(Short key, Float value)
    A Boxed Constructor for supporting java variants
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
     
    float
    Type Specific getValue method that reduces boxing/unboxing
    short
    Type Specific getKey method that reduces boxing/unboxing
    int
     
    void
    set(short key, float value)
    A Helper method for fast replacing values
    float
    setValue(float value)
    Type Specific setValue method that reduces boxing/unboxing
     

    Von Klasse geerbte Methoden java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Von Schnittstelle geerbte Methoden speiger.src.collections.shorts.maps.interfaces.Short2FloatMap.Entry

    getKey, getValue, setValue
  • Konstruktordetails

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

      public BasicEntry(Short key, Float 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, float 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, float 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: Short2FloatMap.Entry
      Type Specific getKey method that reduces boxing/unboxing
      Angegeben von:
      getShortKey in Schnittstelle Short2FloatMap.Entry
      Gibt zurück:
      the key of a given Entry
    • getFloatValue

      public float getFloatValue()
      Beschreibung aus Schnittstelle kopiert: Short2FloatMap.Entry
      Type Specific getValue method that reduces boxing/unboxing
      Angegeben von:
      getFloatValue in Schnittstelle Short2FloatMap.Entry
      Gibt zurück:
      the value of a given Entry
    • setValue

      public float setValue(float value)
      Beschreibung aus Schnittstelle kopiert: Short2FloatMap.Entry
      Type Specific setValue method that reduces boxing/unboxing
      Angegeben von:
      setValue in Schnittstelle Short2FloatMap.Entry
      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<Short,Float>
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

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

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