Klasse ByteBooleanImmutablePair

java.lang.Object
speiger.src.collections.bytes.misc.pairs.impl.ByteBooleanImmutablePair
Alle implementierten Schnittstellen:
ByteBooleanPair

public class ByteBooleanImmutablePair extends Object implements ByteBooleanPair
Mutable Pair Implementation that
  • Konstruktordetails

    • ByteBooleanImmutablePair

      public ByteBooleanImmutablePair()
      Default Constructor
    • ByteBooleanImmutablePair

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

    • setByteKey

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

      public byte getByteKey()
      Angegeben von:
      getByteKey in Schnittstelle ByteBooleanPair
      Gibt zurück:
      the Key of the Pair
    • setBooleanValue

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

      public boolean getBooleanValue()
      Angegeben von:
      getBooleanValue in Schnittstelle ByteBooleanPair
      Gibt zurück:
      the Value of the Pair
    • set

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