All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.reflect.interval.DateUnit Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.lang.reflect.interval;

import java.util.Calendar;

public enum DateUnit
{
  MILLIS( Calendar.MILLISECOND ),
  SECONDS( Calendar.SECOND ),
  MINUTES( Calendar.MINUTE ),
  HOURS( Calendar.HOUR ),
  DAYS( Calendar.DATE ),
  WEEKS( Calendar.WEEK_OF_YEAR ),
  MONTHS( Calendar.MONTH ),
  YEARS( Calendar.YEAR );

  private int _iCalendarConst;

  DateUnit( int iCalendarConst )
  {
    _iCalendarConst = iCalendarConst;
  }

  public int getCalendarConst()
  {
    return _iCalendarConst;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy