Uses of Class javax.xml.datatype.Duration

Uses in package javax.xml.datatype

Methods with parameter type javax.xml.datatype.Duration

Duration
Returns the result of adding the specified duration to this duration.
void
Adds the specified duration to this calendar.
int
Partial order relation comparison with this duration, in accordance with XML Schema 1.0 Part 2, Section 3.2.7.6.2.
boolean
boolean
Duration
Returns the result of subtracting the given duration from this duration.

Methods with return type javax.xml.datatype.Duration

Duration
Returns the result of adding the specified duration to this duration.
Duration
Duration.multiply(int factor)
Returns the result of multiplying this duration by the given factor.
Duration
Returns the result of multiplying this duration by the given factor.
Duration
Returns the unary negative of this duration.
Duration
DatatypeFactory.newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
Returns a new duration by specifying the individual components.
Duration
DatatypeFactory.newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
Returns a new duration by specifying the individual components.
Duration
DatatypeFactory.newDuration(String lexicalRepresentation)
Returns a new duration from its string representation.
Duration
DatatypeFactory.newDuration(long durationInMilliSeconds)
Returns a new duration.
Duration
DatatypeFactory.newDurationDayTime(boolean isPositive, int days, int hours, int minutes, int seconds)
Returns a new dayTimeDuration by specifying the individual components.
Duration
DatatypeFactory.newDurationDayTime(boolean isPositive, BigInteger days, BigInteger hours, BigInteger minutes, BigInteger seconds)
Returns a new dayTimeDuration by specifying the individual components.
Duration
DatatypeFactory.newDurationDayTime(String lexicalRepresentation)
Returns a new dayTimeDuration from its string representation.
Duration
DatatypeFactory.newDurationDayTime(long durationInMilliseconds)
Returns a new dayTimeDuration.
Duration
DatatypeFactory.newDurationYearMonth(boolean isPositive, int years, int months)
Returns a new yearMonthDuration by specifying the individual components.
Duration
DatatypeFactory.newDurationYearMonth(boolean isPositive, BigInteger years, BigInteger months)
Returns a new yearMonthDuration by specifying the individual components.
Duration
Returns a new yearMonthDuration from its string representation.
Duration
DatatypeFactory.newDurationYearMonth(long durationInMilliseconds)
Returns a new yearMonthDuration.
Duration
Duration.normalizeWith(Calendar startTimeInstant)
Converts the years and months fields into the days field using a specific time instant as the reference point.
Duration
Returns the result of subtracting the given duration from this duration.