Klasse ByteFloatImmutablePair

java.lang.Object
speiger.src.collections.bytes.misc.pairs.impl.ByteFloatImmutablePair
Alle implementierten Schnittstellen:
ByteFloatPair

public class ByteFloatImmutablePair extends Object implements ByteFloatPair
Mutable Pair Implementation that
  • Konstruktordetails

    • ByteFloatImmutablePair

      public ByteFloatImmutablePair()
      Default Constructor
    • ByteFloatImmutablePair

      public ByteFloatImmutablePair(byte key, float value)
      Key/Value Constructur
      Parameter:
      key - the key of the Pair
      value - the value of the Pair
  • Methodendetails

    • setByteKey

      public ByteFloatPair setByteKey(byte key)
      Beschreibung aus Schnittstelle kopiert: ByteFloatPair
      Sets the Key of the Pair.
      Angegeben von:
      setByteKey in Schnittstelle ByteFloatPair
      Parameter:
      key - the key that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key.
    • getByteKey

      public byte getByteKey()
      Angegeben von:
      getByteKey in Schnittstelle ByteFloatPair
      Gibt zurück:
      the Key of the Pair
    • setFloatValue

      public ByteFloatPair setFloatValue(float value)
      Beschreibung aus Schnittstelle kopiert: ByteFloatPair
      Sets the Value of the Pair.
      Angegeben von:
      setFloatValue in Schnittstelle ByteFloatPair
      Parameter:
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new value.
    • getFloatValue

      public float getFloatValue()
      Angegeben von:
      getFloatValue in Schnittstelle ByteFloatPair
      Gibt zurück:
      the Value of the Pair
    • set

      public ByteFloatPair set(byte key, float value)
      Beschreibung aus Schnittstelle kopiert: ByteFloatPair
      Sets key and value of the Pair
      Angegeben von:
      set in Schnittstelle ByteFloatPair
      Parameter:
      key - the key that should be set.
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new key and value.
    • shallowCopy

      public ByteFloatPair shallowCopy()
      Beschreibung aus Schnittstelle kopiert: ByteFloatPair
      Clones the Pair if it is mutable.
      Angegeben von:
      shallowCopy in Schnittstelle ByteFloatPair
      Gibt zurück:
      a New Mutable Instance if it is mutable
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

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