|
||||||||||
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
public class Dur
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 | |
---|---|
Dur(byte[] v)
Constructor. |
|
Dur(byte[] v,
Type t)
Constructor. |
|
Dur(Dur d)
Constructor. |
|
Dur(Dur d,
Type t)
Constructor. |
Method Summary | |
---|---|
long |
day()
Returns the days. |
int |
diff(Item it)
Returns the difference between the current and the specified item. |
boolean |
eq(Item it)
Checks the items for equality. |
int |
hashCode()
|
long |
hou()
Returns the hours. |
Duration |
java()
Returns a Java object. |
long |
min()
Returns the minutes. |
int |
mon()
Returns the months. |
BigDecimal |
sec()
Returns the seconds. |
byte[] |
str()
Returns an atomized string. |
long |
tim()
Returns the time. |
String |
toString()
|
int |
yea()
Returns the years. |
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 Dur(Dur d, Type t)
d
- durationt
- data typepublic Dur(Dur d)
d
- durationpublic Dur(byte[] v) throws QueryException
v
- value
QueryException
- query exceptionpublic Dur(byte[] v, Type t) throws QueryException
v
- valuet
- data type
QueryException
- query exceptionMethod Detail |
---|
public final int yea()
public final int mon()
public final long day()
public final long tim()
public final long hou()
public final long min()
public final BigDecimal sec()
public byte[] str()
Item
str
in class Item
public final boolean eq(Item it)
Item
eq
in class Item
it
- item to be compared
public int diff(Item it) throws QueryException
Item
diff
in class Item
it
- item to be compared
QueryException
- query exceptionpublic final Duration java()
Item
java
in class Item
public int hashCode()
hashCode
in class Item
public final String toString()
toString
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |