Class Util
- java.lang.Object
-
- com.sun.msv.datatype.xsd.datetime.Util
-
class Util extends java.lang.Object
date/time-related utility functions/variables.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]
dayInMonth
protected static java.math.BigDecimal
decimal0
protected static java.lang.Integer
int0
protected static java.math.BigInteger
the10
protected static java.math.BigInteger
the100
protected static java.math.BigInteger
the12
protected static java.math.BigInteger
the210379680
number of minutes in 400 years.protected static java.math.BigInteger
the24
protected static java.math.BigInteger
the4
protected static java.math.BigInteger
the400
protected static java.math.BigInteger
the60
protected static java.util.TimeZone
timeZoneNeg14
protected static java.util.TimeZone
timeZonePos14
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.math.BigInteger
int2bi(int v)
creates BigInteger that corresponds with vprotected static java.math.BigInteger
int2bi(java.lang.Integer v)
static int
maximumDayInMonthFor(int year, int month)
static int
maximumDayInMonthFor(java.math.BigInteger year, int month)
protected static int
objCompare(java.lang.Comparable o1, java.lang.Comparable o2)
compares two Comparable objects (possibly null) and returns one ofComparator
constant.protected static boolean
objEqual(java.lang.Object o1, java.lang.Object o2)
compare two objectsprotected static int
objHashCode(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 ofComparator
constant.
-
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)
-
-