Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd.datetime

pack-priv Class Util

extends Object
Class Inheritance
Imports
com.sun.msv.datatype.xsd.Comparator, java.math.BigDecimal, .BigInteger, java.util.SimpleTimeZone

date/time-related utility functions/variables.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final int[]
protected static final BigDecimal
protected static final Integer
protected static final BigInteger
protected static final BigInteger
protected static final BigInteger
protected static final BigInteger
the210379680

number of minutes in 400 years.

protected static final BigInteger
protected static final BigInteger
protected static final BigInteger
protected static final BigInteger
protected static TimeZone
protected static TimeZone

Constructor Summary

AccessConstructor and Description
pack-priv
Util()

Method Summary

Modifier and TypeMethod and Description
protected static BigInteger
int2bi(int v)

creates BigInteger that corresponds with v

protected static BigInteger
public static int
maximumDayInMonthFor(int year, int month)

public static int
protected static int
objCompare(Comparable<T> o1, Comparable<T> o2)

compares two Comparable objects (possibly null) and returns one of Comparator constant.

protected static boolean

Returns:

true
  • if both are null
  • if both are non-null and o1.equals(o2)
false otherwise.
objEqual
(Object o1, Object o2)

compare two objects

protected static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dayInMonthback to summary
private static final int[] dayInMonth
decimal0back to summary
protected static final BigDecimal decimal0
int0back to summary
protected static final Integer int0
the10back to summary
protected static final BigInteger the10
the100back to summary
protected static final BigInteger the100
the12back to summary
protected static final BigInteger the12
the210379680back to summary
protected static final BigInteger the210379680

number of minutes in 400 years.

the24back to summary
protected static final BigInteger the24
the4back to summary
protected static final BigInteger the4
the400back to summary
protected static final BigInteger the400
the60back to summary
protected static final BigInteger the60
timeZoneNeg14back to summary
protected static TimeZone timeZoneNeg14
timeZonePos14back to summary
protected static TimeZone timeZonePos14

Constructor Detail

Utilback to summary
pack-priv Util()

Method Detail

int2biback to summary
protected static BigInteger int2bi(int v)

creates BigInteger that corresponds with v

int2biback to summary
protected static BigInteger int2bi(Integer v)
maximumDayInMonthForback to summary
public static int maximumDayInMonthFor(int year, int month)
maximumDayInMonthForback to summary
public static int maximumDayInMonthFor(BigInteger year, int month)
objCompareback to summary
protected static int objCompare(Comparable<T> o1, Comparable<T> o2)

compares two Comparable objects (possibly null) and returns one of Comparator constant.

objEqualback to summary
protected static boolean objEqual(Object o1, Object o2)

compare two objects

Returns:boolean

true

  • if both are null
  • if both are non-null and o1.equals(o2)
false otherwise.
objHashCodeback to summary
protected static int objHashCode(Object o)