Klasse IntIntImmutablePair

java.lang.Object
speiger.src.collections.ints.misc.pairs.impl.IntIntImmutablePair
Alle implementierten Schnittstellen:
IntIntPair

public class IntIntImmutablePair extends Object implements IntIntPair
Mutable Pair Implementation that
  • Konstruktordetails

    • IntIntImmutablePair

      public IntIntImmutablePair()
      Default Constructor
    • IntIntImmutablePair

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

    • setIntKey

      public IntIntPair setIntKey(int key)
      Beschreibung aus Schnittstelle kopiert: IntIntPair
      Sets the Key of the Pair.
      Angegeben von:
      setIntKey in Schnittstelle IntIntPair
      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 IntIntPair
      Gibt zurück:
      the Key of the Pair
    • setIntValue

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

      public int getIntValue()
      Angegeben von:
      getIntValue in Schnittstelle IntIntPair
      Gibt zurück:
      the Value of the Pair
    • set

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