|
||||||||||
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.Dur
org.basex.query.item.DTd
public final class DTd
DayTime Duration 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 | |
---|---|
DTd(Date dat,
Date sub)
Constructor. |
|
DTd(DTd it,
DTd a,
boolean p)
Constructor. |
|
DTd(Dur it,
double f,
boolean m)
Constructor. |
|
DTd(int shift)
Timezone constructor. |
Method Summary | |
---|---|
int |
diff(Item it)
Returns the difference between the current and the specified item. |
BigDecimal |
dtd()
Returns the date and time. |
int |
hashCode()
|
byte[] |
str()
Returns an atomized string. |
Methods inherited from class org.basex.query.item.Dur |
---|
day, eq, hou, java, min, mon, sec, tim, toString, yea |
Methods inherited from class org.basex.query.item.Item |
---|
atomic, bool, comp, d, dbl, dec, duplicates, ebv, flt, i, iter, iter, itr, n, name, node, plan, removable, returned, s, score, score, serialize, size, test, 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 DTd(int shift)
shift
- shift valuepublic DTd(DTd it, DTd a, boolean p)
it
- duration itema
- duration to be added/subtractedp
- plus/minus flagpublic DTd(Dur it, double f, boolean m) throws QueryException
it
- duration itemf
- factorm
- multiplication flag
QueryException
- query exceptionpublic DTd(Date dat, Date sub)
dat
- date itemsub
- date to be subtractedMethod Detail |
---|
public BigDecimal dtd()
public byte[] str()
Item
str
in class Dur
public int diff(Item it) throws QueryException
Item
diff
in class Dur
it
- item to be compared
QueryException
- query exceptionpublic int hashCode()
hashCode
in class Dur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |