Klasse ByteByteMutablePair

java.lang.Object
speiger.src.collections.bytes.misc.pairs.impl.ByteByteMutablePair
Alle implementierten Schnittstellen:
ByteBytePair

public class ByteByteMutablePair extends Object implements ByteBytePair
Mutable Pair Implementation that
  • Konstruktordetails

    • ByteByteMutablePair

      public ByteByteMutablePair()
      Default Constructor
    • ByteByteMutablePair

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

    • setByteKey

      public ByteBytePair setByteKey(byte key)
      Beschreibung aus Schnittstelle kopiert: ByteBytePair
      Sets the Key of the Pair.
      Angegeben von:
      setByteKey in Schnittstelle ByteBytePair
      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 ByteBytePair
      Gibt zurück:
      the Key of the Pair
    • setByteValue

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

      public byte getByteValue()
      Angegeben von:
      getByteValue in Schnittstelle ByteBytePair
      Gibt zurück:
      the Value of the Pair
    • set

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