Klasse AbstractDouble2BooleanMap.BasicEntry

java.lang.Object
speiger.src.collections.doubles.maps.abstracts.AbstractDouble2BooleanMap.BasicEntry
Alle implementierten Schnittstellen:
Map.Entry<Double,Boolean>, Double2BooleanMap.Entry
Bekannte direkte Unterklassen:
Double2BooleanMaps.UnmodifyableEntry
Umschließende Klasse:
AbstractDouble2BooleanMap

public static class AbstractDouble2BooleanMap.BasicEntry extends Object implements Double2BooleanMap.Entry
A Simple Type Specific Entry class to reduce boxing/unboxing
  • Konstruktordetails

    • BasicEntry

      public BasicEntry()
      A basic Empty constructor
    • BasicEntry

      public BasicEntry(Double key, Boolean value)
      A Boxed Constructor for supporting java variants
      Parameter:
      key - the key of a entry
      value - the value of a entry
    • BasicEntry

      public BasicEntry(double key, boolean value)
      A Type Specific Constructor
      Parameter:
      key - the key of a entry
      value - the value of a entry
  • Methodendetails

    • set

      public void set(double key, boolean value)
      A Helper method for fast replacing values
      Parameter:
      key - the key that should be replaced
      value - the value that should be replaced
    • getDoubleKey

      public double getDoubleKey()
      Beschreibung aus Schnittstelle kopiert: Double2BooleanMap.Entry
      Type Specific getKey method that reduces boxing/unboxing
      Angegeben von:
      getDoubleKey in Schnittstelle Double2BooleanMap.Entry
      Gibt zurück:
      the key of a given Entry
    • getBooleanValue

      public boolean getBooleanValue()
      Beschreibung aus Schnittstelle kopiert: Double2BooleanMap.Entry
      Type Specific getValue method that reduces boxing/unboxing
      Angegeben von:
      getBooleanValue in Schnittstelle Double2BooleanMap.Entry
      Gibt zurück:
      the value of a given Entry
    • setValue

      public boolean setValue(boolean value)
      Beschreibung aus Schnittstelle kopiert: Double2BooleanMap.Entry
      Type Specific setValue method that reduces boxing/unboxing
      Angegeben von:
      setValue in Schnittstelle Double2BooleanMap.Entry
      Parameter:
      value - the new Value that should be placed in the given entry
      Gibt zurück:
      the old value of a given entry
    • equals

      public boolean equals(Object obj)
      Angegeben von:
      equals in Schnittstelle Map.Entry<Double,Boolean>
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Angegeben von:
      hashCode in Schnittstelle Map.Entry<Double,Boolean>
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object