|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xpath.expr.Expression
org.planx.xpath.object.XObject
org.planx.xpath.object.XSimple
org.planx.xpath.object.XNumber
public class XNumber
A number returned by an XPath expression.
| Field Summary | |
|---|---|
static XNumber |
NaN
|
| Constructor Summary | |
|---|---|
XNumber(double value)
Construct an XNumber which represents the specified double value. |
|
XNumber(Double value)
Construct an XNumber which represents the specified Double value. |
|
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns false if the value of this XNumber
is NaN or 0. |
double |
doubleValue()
Returns the value as a double. |
boolean |
equals(Object o)
Returns true if and only if o is
an instance of XNumber and it has the same
value as this. |
int |
hashCode()
Returns a hash code value for this object. |
int |
intValue()
Returns the value as an int. |
long |
longValue()
Returns the value as a long. |
String |
stringValue()
Returns this XNumber as a string. |
String |
toString()
Returns this XNumber as a string. |
| Methods inherited from class org.planx.xpath.object.XObject |
|---|
evaluate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final XNumber NaN
| Constructor Detail |
|---|
public XNumber(double value)
double value.
public XNumber(Double value)
| Method Detail |
|---|
public double doubleValue()
double.
doubleValue in class XSimplepublic long longValue()
long.
public int intValue()
int.
public boolean booleanValue()
false if the value of this XNumber
is NaN or 0. Otherwise returns true.
booleanValue in class XObjectpublic String stringValue()
stringValue in class XSimplepublic String toString()
toString in class Objectpublic boolean equals(Object o)
o is
an instance of XNumber and it has the same
value as this.
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||