|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mark.core.util.DoubleWrap
My own wrapper for a double. Unlike java.lang.Double, you may modify the value of this wrapper. I also provide Comparators to sort in ascending or descending order.
| Field Summary | |
protected static java.util.Comparator |
fNormal
|
protected double |
fNum
|
protected static java.util.Comparator |
fReverse
|
| Constructor Summary | |
DoubleWrap()
Initializes the wrapper with zero. |
|
DoubleWrap(double num)
Initializes the wrapper with the given double. |
|
| Method Summary | |
static java.util.Comparator |
getNormal()
|
static java.util.Comparator |
getReverse()
|
double |
num()
Returns the value of the wrapper. |
void |
setNum(double num)
Sets the value of the wrapper. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.util.Comparator fReverse
protected static java.util.Comparator fNormal
protected double fNum
| Constructor Detail |
public DoubleWrap(double num)
num - the initial value.public DoubleWrap()
| Method Detail |
public static java.util.Comparator getReverse()
public static java.util.Comparator getNormal()
public double num()
public void setNum(double num)
num - the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||