Klasse IntShortMutablePair

java.lang.Object
speiger.src.collections.ints.misc.pairs.impl.IntShortMutablePair
Alle implementierten Schnittstellen:
IntShortPair

public class IntShortMutablePair extends Object implements IntShortPair
Mutable Pair Implementation that
  • Konstruktordetails

    • IntShortMutablePair

      public IntShortMutablePair()
      Default Constructor
    • IntShortMutablePair

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

    • setIntKey

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

      public int getIntKey()
      Angegeben von:
      getIntKey in Schnittstelle IntShortPair
      Gibt zurück:
      the Key of the Pair
    • setShortValue

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

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