Klasse FloatShortImmutablePair

java.lang.Object
speiger.src.collections.floats.misc.pairs.impl.FloatShortImmutablePair
Alle implementierten Schnittstellen:
FloatShortPair

public class FloatShortImmutablePair extends Object implements FloatShortPair
Mutable Pair Implementation that
  • Konstruktordetails

    • FloatShortImmutablePair

      public FloatShortImmutablePair()
      Default Constructor
    • FloatShortImmutablePair

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

    • setFloatKey

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

      public float getFloatKey()
      Angegeben von:
      getFloatKey in Schnittstelle FloatShortPair
      Gibt zurück:
      the Key of the Pair
    • setShortValue

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

      public short getShortValue()
      Angegeben von:
      getShortValue in Schnittstelle FloatShortPair
      Gibt zurück:
      the Value of the Pair
    • set

      public FloatShortPair set(float key, short value)
      Beschreibung aus Schnittstelle kopiert: FloatShortPair
      Sets key and value of the Pair
      Angegeben von:
      set in Schnittstelle FloatShortPair
      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 FloatShortPair shallowCopy()
      Beschreibung aus Schnittstelle kopiert: FloatShortPair
      Clones the Pair if it is mutable.
      Angegeben von:
      shallowCopy in Schnittstelle FloatShortPair
      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