|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.util.EnumDoubles<E>
E - the enum typepublic class EnumDoubles<E extends Enum<E>>
Similar to EnumCounters except that the value type is double.
| Constructor Summary | |
|---|---|
EnumDoubles(Class<E> enumClass)
Construct doubles for the given enum constants. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnumDoubles(Class<E> enumClass)
enumClass - the enum class.| Method Detail |
|---|
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(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||