Klasse ShortShortImmutablePair

java.lang.Object
speiger.src.collections.shorts.misc.pairs.impl.ShortShortImmutablePair
Alle implementierten Schnittstellen:
ShortShortPair

public class ShortShortImmutablePair extends Object implements ShortShortPair
Mutable Pair Implementation that
  • Konstruktordetails

    • ShortShortImmutablePair

      public ShortShortImmutablePair()
      Default Constructor
    • ShortShortImmutablePair

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

    • setShortKey

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

      public short getShortKey()
      Angegeben von:
      getShortKey in Schnittstelle ShortShortPair
      Gibt zurück:
      the Key of the Pair
    • setShortValue

      public ShortShortPair setShortValue(short value)
      Beschreibung aus Schnittstelle kopiert: ShortShortPair
      Sets the Value of the Pair.
      Angegeben von:
      setShortValue in Schnittstelle ShortShortPair
      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 ShortShortPair
      Gibt zurück:
      the Value of the Pair
    • set

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