Class Util

java.lang.Object
com.sun.msv.datatype.xsd.datetime.Util

class Util extends Object
date/time-related utility functions/variables.
  • Field Details

    • the4

      protected static final BigInteger the4
    • the10

      protected static final BigInteger the10
    • the12

      protected static final BigInteger the12
    • the24

      protected static final BigInteger the24
    • the60

      protected static final BigInteger the60
    • the100

      protected static final BigInteger the100
    • the400

      protected static final BigInteger the400
    • the210379680

      protected static final BigInteger the210379680
      number of minutes in 400 years.
    • decimal0

      protected static final BigDecimal decimal0
    • int0

      protected static final Integer int0
    • timeZonePos14

      protected static TimeZone timeZonePos14
    • timeZoneNeg14

      protected static TimeZone timeZoneNeg14
    • dayInMonth

      private static final int[] dayInMonth
  • Constructor Details

    • Util

      Util()
  • Method Details

    • objEqual

      protected static boolean objEqual(Object o1, Object o2)
      compare two objects
      Returns:
      true
      • if both are null
      • if both are non-null and o1.equals(o2)
      false otherwise.
    • objHashCode

      protected static int objHashCode(Object o)
    • objCompare

      protected static int objCompare(Comparable o1, Comparable o2)
      compares two Comparable objects (possibly null) and returns one of Comparator constant.
    • int2bi

      protected static BigInteger int2bi(int v)
      creates BigInteger that corresponds with v
    • int2bi

      protected static BigInteger int2bi(Integer v)
    • maximumDayInMonthFor

      public static int maximumDayInMonthFor(int year, int month)
    • maximumDayInMonthFor

      public static int maximumDayInMonthFor(BigInteger year, int month)