gw.lang.reflect.interval.DateUnit Maven / Gradle / Ivy
/*
* 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;
}
}