E - the enum typepublic class EnumDoubles<E extends java.lang.Enum<E>>
extends java.lang.Object
EnumCounters except that the value type is double.| Constructor | Description |
|---|---|
EnumDoubles(java.lang.Class<E> enumClass) |
Construct doubles for the given enum constants.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(E e,
double value) |
Add the given value to e.
|
void |
add(EnumDoubles<E> that) |
Add the values of that object to this.
|
boolean |
equals(java.lang.Object obj) |
|
double |
get(E e) |
|
int |
hashCode() |
|
void |
negation() |
Negate all values.
|
void |
reset() |
Reset all values to zero.
|
void |
set(E e,
double value) |
Set e to the given value.
|
void |
set(EnumDoubles<E> that) |
Set the values of this object to that object.
|
void |
subtract(E e,
double value) |
Subtract the given value from e.
|
void |
subtract(EnumDoubles<E> that) |
Subtract the values of this object from that object.
|
java.lang.String |
toString() |
public EnumDoubles(java.lang.Class<E> enumClass)
enumClass - the enum class.public final double get(E e)
public final void negation()
public final void set(E e, double value)
public final void set(EnumDoubles<E> that)
public final void reset()
public final void add(E e, double value)
public final void add(EnumDoubles<E> that)
public final void subtract(E e, double value)
public final void subtract(EnumDoubles<E> that)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.