将此 xmlgregoriancalendar
重设为其原始值。
将 xmlgregoriancalendar
重置为与使用 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)
或 datatypefactory.newxmlgregoriancalendartime( int hours, int minutes, int seconds, int milliseconds, int timezone)
创建时相同的值。
reset()
的设计目的是允许重用现有的 xmlgregoriancalendar
,从而节省与创建新 xmlgregoriancalendar
相关的资源。