Class Util
- java.lang.Object
-
- com.sun.msv.datatype.xsd.datetime.Util
-
class Util extends java.lang.Objectdate/time-related utility functions/variables.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]dayInMonthprotected static java.math.BigDecimaldecimal0protected static java.lang.Integerint0protected static java.math.BigIntegerthe10protected static java.math.BigIntegerthe100protected static java.math.BigIntegerthe12protected static java.math.BigIntegerthe210379680number of minutes in 400 years.protected static java.math.BigIntegerthe24protected static java.math.BigIntegerthe4protected static java.math.BigIntegerthe400protected static java.math.BigIntegerthe60protected static java.util.TimeZonetimeZoneNeg14protected static java.util.TimeZonetimeZonePos14
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.math.BigIntegerint2bi(int v)creates BigInteger that corresponds with vprotected static java.math.BigIntegerint2bi(java.lang.Integer v)static intmaximumDayInMonthFor(int year, int month)static intmaximumDayInMonthFor(java.math.BigInteger year, int month)protected static intobjCompare(java.lang.Comparable o1, java.lang.Comparable o2)compares two Comparable objects (possibly null) and returns one ofComparatorconstant.protected static booleanobjEqual(java.lang.Object o1, java.lang.Object o2)compare two objectsprotected static intobjHashCode(java.lang.Object o)
-
-
-
Field Detail
-
the4
protected static final java.math.BigInteger the4
-
the10
protected static final java.math.BigInteger the10
-
the12
protected static final java.math.BigInteger the12
-
the24
protected static final java.math.BigInteger the24
-
the60
protected static final java.math.BigInteger the60
-
the100
protected static final java.math.BigInteger the100
-
the400
protected static final java.math.BigInteger the400
-
the210379680
protected static final java.math.BigInteger the210379680
number of minutes in 400 years.
-
decimal0
protected static final java.math.BigDecimal decimal0
-
int0
protected static final java.lang.Integer int0
-
timeZonePos14
protected static java.util.TimeZone timeZonePos14
-
timeZoneNeg14
protected static java.util.TimeZone timeZoneNeg14
-
dayInMonth
private static final int[] dayInMonth
-
-
Method Detail
-
objEqual
protected static boolean objEqual(java.lang.Object o1, java.lang.Object o2)compare two objects- Returns:
- true
- if both are null
- if both are non-null and o1.equals(o2)
-
objHashCode
protected static int objHashCode(java.lang.Object o)
-
objCompare
protected static int objCompare(java.lang.Comparable o1, java.lang.Comparable o2)compares two Comparable objects (possibly null) and returns one ofComparatorconstant.
-
int2bi
protected static java.math.BigInteger int2bi(int v)
creates BigInteger that corresponds with v
-
int2bi
protected static java.math.BigInteger int2bi(java.lang.Integer v)
-
maximumDayInMonthFor
public static int maximumDayInMonthFor(int year, int month)
-
maximumDayInMonthFor
public static int maximumDayInMonthFor(java.math.BigInteger year, int month)
-
-