Klasse BooleanIntImmutablePair

java.lang.Object
speiger.src.collections.booleans.misc.pairs.impl.BooleanIntImmutablePair
Alle implementierten Schnittstellen:
BooleanIntPair

public class BooleanIntImmutablePair extends Object implements BooleanIntPair
Mutable Pair Implementation that
  • Konstruktordetails

    • BooleanIntImmutablePair

      public BooleanIntImmutablePair()
      Default Constructor
    • BooleanIntImmutablePair

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

    • setBooleanKey

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

      public boolean getBooleanKey()
      Angegeben von:
      getBooleanKey in Schnittstelle BooleanIntPair
      Gibt zurück:
      the Key of the Pair
    • setIntValue

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

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