Klasse AbstractByte2ShortMap.BasicEntry

java.lang.Object
speiger.src.collections.bytes.maps.abstracts.AbstractByte2ShortMap.BasicEntry
Alle implementierten Schnittstellen:
Map.Entry<Byte,Short>, Byte2ShortMap.Entry
Bekannte direkte Unterklassen:
Byte2ShortMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractByte2ShortMap

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

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

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
     
    byte
    Type Specific getKey method that reduces boxing/unboxing
    short
    Type Specific getValue method that reduces boxing/unboxing
    int
     
    void
    set(byte key, short value)
    A Helper method for fast replacing values
    short
    setValue(short 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.bytes.maps.interfaces.Byte2ShortMap.Entry

    getKey, getValue, setValue
  • Konstruktordetails

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

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

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

    • set

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

      public byte getByteKey()
      Beschreibung aus Schnittstelle kopiert: Byte2ShortMap.Entry
      Type Specific getKey method that reduces boxing/unboxing
      Angegeben von:
      getByteKey in Schnittstelle Byte2ShortMap.Entry
      Gibt zurück:
      the key of a given Entry
    • getShortValue

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

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

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

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