Class ImmutableXMLGregorianCalendar

java.lang.Object
javax.xml.datatype.XMLGregorianCalendar
com.iizix.value.ImmutableXMLGregorianCalendar
All Implemented Interfaces:
Cloneable

public class ImmutableXMLGregorianCalendar extends XMLGregorianCalendar
An immutable version of the XMLGregorianCalendar.

The following methods throws IllegalStateException:

  • clear()
  • reset()
  • setYear(BigInteger year)
  • setYear(int year)
  • setMonth(int month)
  • setDay(int day)
  • setTimezone(int offset)
  • setHour(int hour)
  • setMinute(int minute)
  • setSecond(int second)
  • setMillisecond(int millisecond)
  • setFractionalSecond(BigDecimal fractional)
  • add(Duration duration)

The XMLGregorianCalendar normalize() method returned a new cloned instance that is normalized.

Author:
Christopher Mindus