Class Util
java.lang.Object
com.sun.msv.datatype.xsd.datetime.Util
date/time-related utility functions/variables.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]protected static final BigDecimalprotected static final Integerprotected static final BigIntegerprotected static final BigIntegerprotected static final BigIntegerprotected static final BigIntegernumber of minutes in 400 years.protected static final BigIntegerprotected static final BigIntegerprotected static final BigIntegerprotected static final BigIntegerprotected static TimeZoneprotected static TimeZone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BigIntegerint2bi(int v) creates BigInteger that corresponds with vprotected static BigIntegerstatic intmaximumDayInMonthFor(int year, int month) static intmaximumDayInMonthFor(BigInteger year, int month) protected static intobjCompare(Comparable o1, Comparable o2) compares two Comparable objects (possibly null) and returns one ofComparatorconstant.protected static booleancompare two objectsprotected static int
-
Field Details
-
the4
-
the10
-
the12
-
the24
-
the60
-
the100
-
the400
-
the210379680
number of minutes in 400 years. -
decimal0
-
int0
-
timeZonePos14
-
timeZoneNeg14
-
dayInMonth
private static final int[] dayInMonth
-
-
Constructor Details
-
Util
Util()
-
-
Method Details
-
objEqual
compare two objects- Returns:
- true
- if both are null
- if both are non-null and o1.equals(o2)
-
objHashCode
-
objCompare
compares two Comparable objects (possibly null) and returns one ofComparatorconstant. -
int2bi
creates BigInteger that corresponds with v -
int2bi
-
maximumDayInMonthFor
public static int maximumDayInMonthFor(int year, int month) -
maximumDayInMonthFor
-