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 |
formatStr() |
static UpdatePeriod |
fromUnitName(String unitName) |
String |
getName() |
float |
getNormalizationFactor() |
String |
getUnitName() |
void |
increment(Calendar calendar,
int increment) |
long |
monthWeight(Date date) |
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 long monthWeight(Date date)
public static UpdatePeriod fromUnitName(String unitName) throws LensException
LensException
public DateFormat format()
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–2015 Apache Software Foundation. All rights reserved.