public class XSDDuration extends AbstractDateTime
EQUAL, GREATER_THAN, INDETERMINATE, LESS_THAN
Constructor and Description |
---|
XSDDuration(Object value)
Constructor - should only be used by the internals but public scope because
the internals spread across multiple packages.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Equality function (value based).
|
BigDecimal |
getBigSeconds()
Return the number of seconds in the duration, including the fractional part,
in a lossless but expensive notation - i.e.
|
int |
getDays()
Return the number of years in the duration
|
int |
getFullSeconds()
Return the number of full seconds in the duration
|
int |
getHours()
Return the number of hours in the duration
|
int |
getMinutes()
Return the number of minutes in the duration
|
int |
getMonths()
Return the number of months in the duration
|
double |
getSeconds()
Return the number of seconds in the duration, including fractional part
|
double |
getTimePart()
Return the time component of the duration - i.e.
|
int |
getYears()
Return the number of years in the duration
|
int |
hashCode() |
String |
toString()
Serializer
|
compare, compareTo, normalize
public XSDDuration(Object value)
value
- the date/time value returned by the parsingpublic int getYears()
public int getMonths()
public int getDays()
public int getHours()
public int getMinutes()
public int getFullSeconds()
public double getSeconds()
public BigDecimal getBigSeconds()
public double getTimePart()
public boolean equals(Object obj)
equals
in class AbstractDateTime
public int hashCode()
hashCode
in class AbstractDateTime
Licenced under the Apache License, Version 2.0