abstract Duration |
Duration.add(Duration rhs) |
Computes a new duration whose value is this+rhs .
|
Duration |
Duration.multiply(int factor) |
Computes a new duration whose value is factor times
longer than the value of this duration.
|
abstract Duration |
Duration.multiply(BigDecimal factor) |
Computes a new duration whose value is factor times
longer than the value of this duration.
|
abstract Duration |
Duration.negate() |
Returns a new Duration object whose
value is -this .
|
Duration |
DatatypeFactory.newDuration(boolean isPositive,
int years,
int months,
int days,
int hours,
int minutes,
int seconds) |
Obtain a new instance of a Duration
specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.
|
abstract Duration |
DatatypeFactory.newDuration(boolean isPositive,
BigInteger years,
BigInteger months,
BigInteger days,
BigInteger hours,
BigInteger minutes,
BigDecimal seconds) |
Obtain a new instance of a Duration
specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.
|
abstract Duration |
DatatypeFactory.newDuration(long durationInMilliSeconds) |
Obtain a new instance of a Duration
specifying the Duration as milliseconds.
|
abstract Duration |
DatatypeFactory.newDuration(String lexicalRepresentation) |
Obtain a new instance of a Duration
specifying the Duration as its string representation, "PnYnMnDTnHnMnS",
as defined in XML Schema 1.0 section 3.2.6.1.
|
Duration |
DatatypeFactory.newDurationDayTime(boolean isPositive,
int day,
int hour,
int minute,
int second) |
|
Duration |
DatatypeFactory.newDurationDayTime(boolean isPositive,
BigInteger day,
BigInteger hour,
BigInteger minute,
BigInteger second) |
|
Duration |
DatatypeFactory.newDurationDayTime(long durationInMilliseconds) |
|
Duration |
DatatypeFactory.newDurationDayTime(String lexicalRepresentation) |
|
Duration |
DatatypeFactory.newDurationYearMonth(boolean isPositive,
int year,
int month) |
|
Duration |
DatatypeFactory.newDurationYearMonth(boolean isPositive,
BigInteger year,
BigInteger month) |
|
Duration |
DatatypeFactory.newDurationYearMonth(long durationInMilliseconds) |
|
Duration |
DatatypeFactory.newDurationYearMonth(String lexicalRepresentation) |
|
abstract Duration |
Duration.normalizeWith(Calendar startTimeInstant) |
Converts the years and months fields into the days field
by using a specific time instant as the reference point.
|
Duration |
Duration.subtract(Duration rhs) |
Computes a new duration whose value is this-rhs .
|