Klasse ByteObjectMutablePair<V>

java.lang.Object
speiger.src.collections.bytes.misc.pairs.impl.ByteObjectMutablePair<V>
Typparameter:
V - the keyType of elements maintained by this Collection
Alle implementierten Schnittstellen:
ByteObjectPair<V>

public class ByteObjectMutablePair<V> extends Object implements ByteObjectPair<V>
Mutable Pair Implementation that
  • Konstruktordetails

    • ByteObjectMutablePair

      public ByteObjectMutablePair()
      Default Constructor
    • ByteObjectMutablePair

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

    • setByteKey

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

      public ByteObjectPair<V> setValue(V value)
      Beschreibung aus Schnittstelle kopiert: ByteObjectPair
      Sets the Value of the Pair.
      Angegeben von:
      setValue in Schnittstelle ByteObjectPair<V>
      Parameter:
      value - the value that should be set.
      Gibt zurück:
      self or a new Pair instance with the new value.
    • getValue

      public V getValue()
      Angegeben von:
      getValue in Schnittstelle ByteObjectPair<V>
      Gibt zurück:
      the Value of the Pair
    • set

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