|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
net.lucidviews.util.VariableNumber
net.lucidviews.util.VariableDouble
public class VariableDouble
A number object holding a variable double-precision floating-point value.
VariableNumber,
Serialized Form| Field Summary | |
|---|---|
private double |
value
The underlying value. |
| Constructor Summary | |
|---|---|
VariableDouble(double value)
Create a variable number to hold a double value. |
|
VariableDouble(Number value)
Create a variable number to hold a double value. |
|
| Method Summary | |
|---|---|
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
protected void |
setValueInternal(double value)
An internal set command. |
protected void |
setValueInternal(float value)
An internal set command. |
protected void |
setValueInternal(int value)
An internal set command. |
protected void |
setValueInternal(long value)
An internal set command. |
String |
toString()
|
| Methods inherited from class net.lucidviews.util.VariableNumber |
|---|
isSecure, secure, setValue, setValue, setValue, setValue, setValue, setValue, setValueInternal, setValueInternal, verifyNotSecure |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double value
| Constructor Detail |
|---|
public VariableDouble(double value)
value - the initial valuepublic VariableDouble(Number value)
value - the initial value
NullPointerException - if the initial value is null| Method Detail |
|---|
protected void setValueInternal(int value)
VariableNumber
setValueInternal in class VariableNumbervalue - the new value for this numberprotected void setValueInternal(long value)
VariableNumber
setValueInternal in class VariableNumbervalue - the new value for this numberprotected void setValueInternal(float value)
VariableNumber
setValueInternal in class VariableNumbervalue - the new value for this numberprotected void setValueInternal(double value)
VariableNumber
setValueInternal in class VariableNumbervalue - the new value for this numberpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||