public enum UpdatePeriod extends Enum<UpdatePeriod> implements Named
Modifier and Type | Class and Description |
---|---|
static class |
UpdatePeriod.UpdatePeriodComparator |
Enum Constant and Description |
---|
CONTINUOUS |
DAILY |
HOURLY |
MINUTELY |
MONTHLY |
QUARTERLY |
SECONDLY |
WEEKLY |
YEARLY |
Modifier and Type | Field and Description |
---|---|
static long |
MIN_INTERVAL |
Modifier and Type | Method and Description |
---|---|
int |
calendarField() |
boolean |
canParseDateString(String dateString) |
DateFormat |
format() |
String |
format(Date date) |
String |
formatStr() |
static UpdatePeriod |
fromUnitName(String unitName) |
Date |
getCeilDate(Date date) |
Date |
getFloorDate(Date date) |
String |
getName() |
float |
getNormalizationFactor() |
String |
getUnitName() |
void |
increment(Calendar calendar,
int increment) |
Date |
parse(String dateString) |
Calendar |
truncate(Calendar calendar) |
Date |
truncate(Date date) |
static UpdatePeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdatePeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
long |
weight() |
public static final UpdatePeriod SECONDLY
public static final UpdatePeriod MINUTELY
public static final UpdatePeriod HOURLY
public static final UpdatePeriod DAILY
public static final UpdatePeriod WEEKLY
public static final UpdatePeriod MONTHLY
public static final UpdatePeriod QUARTERLY
public static final UpdatePeriod YEARLY
public static final UpdatePeriod CONTINUOUS
public static UpdatePeriod[] values()
for (UpdatePeriod c : UpdatePeriod.values()) System.out.println(c);
public static UpdatePeriod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int calendarField()
public long weight()
public static UpdatePeriod fromUnitName(String unitName) throws LensException
LensException
public DateFormat format()
public Date parse(String dateString) throws ParseException
ParseException
public String formatStr()
public boolean canParseDateString(String dateString)
public float getNormalizationFactor()
public void increment(Calendar calendar, int increment)
@Generated(value="lombok") public String getUnitName()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.