KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > xml > datatype > Duration

javax.xml.datatype
Class Duration

java.lang.Object
  extended by javax.xml.datatype.Duration
See Also:
Top Examples, Source Code, Calendar, isLongerThan(Duration), compare(Duration duration), XMLGregorianCalendar.add(Duration)

public abstract Duration add(Duration rhs)
See Also:
subtract(Duration), IllegalStateException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void addTo(Calendar calendar)
See Also:
NullPointerException, XMLGregorianCalendar.add(Duration), Calendar.add(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addTo(Date date)
See Also:
NullPointerException, addTo(Calendar), GregorianCalendar
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int compare(Duration duration)
See Also:
isLongerThan(Duration), isShorterThan(Duration), NullPointerException, UnsupportedOperationException, DatatypeConstants.INDETERMINATE, DatatypeConstants.GREATER, DatatypeConstants.EQUAL, DatatypeConstants.LESSER
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Duration()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean equals(Object duration)
See Also:
compare(Duration duration), NullPointerException, UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getDays()
See Also:
getYears()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Number getField(DatatypeConstants.Field field)
See Also:
NullPointerException, BigDecimal, BigInteger
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getHours()
See Also:
getYears()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMinutes()
See Also:
getYears()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMonths()
See Also:
getYears()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSeconds()
See Also:
getYears()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getSign()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getTimeInMillis(Calendar startInstant)
See Also:
NullPointerException, addTo(Calendar)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getTimeInMillis(Date startInstant)
See Also:
getTimeInMillis(Calendar), NullPointerException, addTo(Date)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public QName getXMLSchemaType()
See Also:
IllegalStateException, DatatypeConstants.DURATION_YEARMONTH, DatatypeConstants.DURATION_DAYTIME, DatatypeConstants.DURATION, isSet(DatatypeConstants.Field field)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getYears()
See Also:
getField(DatatypeConstants.YEARS)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int hashCode()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isLongerThan(Duration duration)
See Also:
compare(Duration duration), isShorterThan(Duration), NullPointerException, UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract boolean isSet(DatatypeConstants.Field field)
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isShorterThan(Duration duration)
See Also:
compare(Duration duration), isLongerThan(Duration duration), NullPointerException, UnsupportedOperationException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Duration multiply(int factor)
See Also:
multiply(BigDecimal)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Duration multiply(BigDecimal factor)
See Also:
NullPointerException, IllegalStateException, normalizeWith(Calendar)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Duration negate()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Duration normalizeWith(Calendar startTimeInstant)
See Also:
NullPointerException, Calendar.add(int,int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Duration subtract(Duration rhs)
See Also:
add(Duration), NullPointerException, IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object, DatatypeFactory.newDuration(String lexicalRepresentation)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags