XMLGregorianCalendar.Reset Method

Definition

Reset this XMLGregorianCalendar to its original values.

[Android.Runtime.Register("reset", "()V", "GetResetHandler")]
public abstract void Reset ();
[<Android.Runtime.Register("reset", "()V", "GetResetHandler")>]
abstract member Reset : unit -> unit
Attributes

Remarks

Reset this XMLGregorianCalendar to its original values.

XMLGregorianCalendar is reset to the same values as when it was created with DatatypeFactory#newXMLGregorianCalendar(), DatatypeFactory#newXMLGregorianCalendar(String lexicalRepresentation), DatatypeFactory#newXMLGregorianCalendar( BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone), DatatypeFactory#newXMLGregorianCalendar( int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone), DatatypeFactory#newXMLGregorianCalendar(GregorianCalendar cal), DatatypeFactory#newXMLGregorianCalendarDate( int year, int month, int day, int timezone), DatatypeFactory#newXMLGregorianCalendarTime( int hours, int minutes, int seconds, int timezone), DatatypeFactory#newXMLGregorianCalendarTime( int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone) or DatatypeFactory#newXMLGregorianCalendarTime( int hours, int minutes, int seconds, int milliseconds, int timezone).

reset() is designed to allow the reuse of existing XMLGregorianCalendars thus saving resources associated with the creation of new XMLGregorianCalendars.

Java documentation for javax.xml.datatype.XMLGregorianCalendar.reset().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to