Klasse ByteDoubleImmutablePair

java.lang.Object
speiger.src.collections.bytes.misc.pairs.impl.ByteDoubleImmutablePair
Alle implementierten Schnittstellen:
ByteDoublePair

public class ByteDoubleImmutablePair extends Object implements ByteDoublePair
Mutable Pair Implementation that
  • Konstruktordetails

    • ByteDoubleImmutablePair

      public ByteDoubleImmutablePair()
      Default Constructor
    • ByteDoubleImmutablePair

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

    • setByteKey

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

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

      public double getDoubleValue()
      Angegeben von:
      getDoubleValue in Schnittstelle ByteDoublePair
      Gibt zurück:
      the Value of the Pair
    • set

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