|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliterals.PSNumber
| Constructor Summary | |
PSNumber()
Creates a new PSNumber object with a default value set to zero. |
|
PSNumber(double number)
Creates a new PSNumber object with its value set to the value(double) being given as a parameter. |
|
PSNumber(int number)
Creates a new PSNumber object with its value set to the value(int) being given as a parameter. |
|
| Method Summary | |
double |
getValue()
Returns the number being encapsulated. |
java.lang.String |
toString()
Converts the encapsulated value into string Precondition : The instance is in a valid form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PSNumber()
public PSNumber(int number)
number - The initialization value(int) of the newly created PSNumber.public PSNumber(double number)
number - The initialization value(double) of the newly created PSNumber.| Method Detail |
public double getValue()
public java.lang.String toString()
toString in interface PSLiteral
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||