Java javax.xml.datatype Duration fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.datatype Duration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.datatype Duration.

The text is from its open source code.

Method

Durationadd(final Duration rhs)
Computes a new duration whose value is this+rhs .
voidaddTo(Calendar calendar)
Adds this duration to a Calendar object.
voidaddTo(Date date)
Adds this duration to a Date object.
intcompare(final Duration duration)
Partial order relation comparison with this Duration instance.
intgetDays()
Obtains the value of the DAYS field as an integer value, or 0 if not present.
NumbergetField(final DatatypeConstants.Field field)
Gets the value of a field.
intgetHours()
Obtains the value of the HOURS field as an integer value, or 0 if not present.
intgetMinutes()
Obtains the value of the MINUTES field as an integer value, or 0 if not present.
intgetMonths()
Obtains the value of the MONTHS field as an integer value, or 0 if not present.
intgetSeconds()
Obtains the value of the SECONDS field as an integer value, or 0 if not present.
intgetSign()
Returns the sign of this duration in -1,0, or 1.
longgetTimeInMillis(final Calendar startInstant)
Returns the length of the duration in milli-seconds.
longgetTimeInMillis(final Date startInstant)
Returns the length of the duration in milli-seconds.
QNamegetXMLSchemaType()
Return the name of the XML Schema date/time type that this instance maps to.
intgetYears()
Get the years value of this Duration as an int or 0 if not present.
Durationnegate()
Returns a new Duration object whose value is -this .
Durationsubtract(final Duration rhs)
Computes a new duration whose value is this-rhs .
StringtoString()
Returns a String representation of this Duration Object .