|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.item.Item
org.basex.query.item.Dbl
public final class Dbl
Double item.
| Field Summary | |
|---|---|
static Dbl |
NAN
Invalid value. |
static Dbl |
ONE
Zero value. |
static Dbl |
ZERO
Zero value. |
| Fields inherited from class org.basex.query.item.Item |
|---|
type |
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
double |
dbl()
Returns a double representation of the item. |
java.math.BigDecimal |
dec()
Returns a decimal representation of the item. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
float |
flt()
Returns a float representation of the item. |
static Dbl |
get(byte[] v)
Returns an instance of this class. |
static Dbl |
get(double d)
Returns an instance of this class. |
int |
hash()
Returns a hash code. |
long |
itr()
Returns an integer (long) representation of the item. |
java.lang.Object |
java()
Returns a Java object. |
static double |
parse(byte[] val)
Converts the given token into a double value. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.item.Item |
|---|
atomic, castErr, comp, d, duplicates, ebv, i, iter, iter, n, name, node, plan, removable, returned, s, score, score, serialize, test, toString, u, uses |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs, size |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Dbl ZERO
public static final Dbl ONE
public static final Dbl NAN
| Method Detail |
|---|
public static Dbl get(double d)
d - value
public static Dbl get(byte[] v)
throws QueryException
v - value
QueryException - evaluation exceptionpublic byte[] str()
Item
str in class Itempublic boolean bool()
Item
bool in class Itempublic long itr()
Item
itr in class Itempublic float flt()
Item
flt in class Itempublic double dbl()
Item
dbl in class Item
public java.math.BigDecimal dec()
throws QueryException
Item
dec in class ItemQueryException - evaluation exception
public boolean eq(Item it)
throws QueryException
Item
eq in class Itemit - item to be compared.
QueryException - evaluation exception
public int diff(Item it)
throws QueryException
Item
diff in class Itemit - item to be compared.
QueryException - evaluation exceptionpublic int hash()
Item
hash in class Itempublic java.lang.Object java()
Item
java in class Item
public static double parse(byte[] val)
throws QueryException
val - value to be converted
QueryException - possible converting exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||