|
||||||||||
| 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.Dec
public final class Dec
Decimal item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
|---|
Expr.Use |
| Field Summary |
|---|
| Fields inherited from class org.basex.query.item.Item |
|---|
score, type |
| Constructor Summary | |
|---|---|
Dec(BigDecimal d,
Type t)
Constructor. |
|
Dec(byte[] t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
bool()
Returns a boolean representation of the item. |
double |
dbl()
Returns a double representation of the item. |
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 Dec |
get(BigDecimal d)
Constructor. |
static Dec |
get(double d)
Constructor. |
int |
hashCode()
|
long |
itr()
Returns an integer (long) representation of the item. |
Object |
java()
Returns a Java object. |
byte[] |
str()
Returns an atomized string. |
| Methods inherited from class org.basex.query.item.Item |
|---|
atomic, comp, d, duplicates, ebv, i, iter, iter, n, name, node, plan, removable, returned, s, score, score, serialize, size, test, toString, u, uses |
| Methods inherited from class org.basex.query.expr.Expr |
|---|
addText, checkCtx, checkDbl, checkItr, e, indexAccessible, indexEquivalent, remove, sameAs, v |
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dec(byte[] t)
t - string representation
public Dec(BigDecimal d,
Type t)
d - decimal valuet - string representation| Method Detail |
|---|
public static Dec get(BigDecimal d)
d - big decimal value
public static Dec get(double d)
d - big decimal value
public 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 Itempublic BigDecimal dec()
Item
dec in class Item
public boolean eq(Item it)
throws QueryException
Item
eq in class Itemit - item to be compared
QueryException - query exception
public int diff(Item it)
throws QueryException
Item
diff in class Itemit - item to be compared
QueryException - query exceptionpublic Object java()
Item
java in class Itempublic int hashCode()
hashCode in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||