E - the enum typepublic class EnumDoubles<E extends Enum<E>> extends Object
EnumCounters except that the value type is double.| Constructor and Description |
|---|
EnumDoubles(Class<E> enumClass)
Construct doubles for the given enum constants.
|
| Modifier and Type | Method and 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(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.
|
String |
toString() |
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)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.