public enum CalendarField extends Enum<CalendarField>
Enum Constant and Description |
---|
DAYOFMONTH |
DAYOFWEEK |
DAYOFYEAR |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
QUARTER |
SECOND |
WEEK |
YEAR |
Modifier and Type | Field and Description |
---|---|
protected int |
field
Base field for computation.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Calendar calendar,
int amount)
Add
amount to calendar according to field. |
int |
get(Calendar calendar)
Get the calendar field.
|
static CalendarField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarField HOUR
public static final CalendarField MINUTE
public static final CalendarField SECOND
public static final CalendarField MILLISECOND
public static final CalendarField YEAR
public static final CalendarField QUARTER
public static final CalendarField MONTH
public static final CalendarField WEEK
public static final CalendarField DAYOFMONTH
public static final CalendarField DAYOFWEEK
public static final CalendarField DAYOFYEAR
public static CalendarField[] values()
for (CalendarField c : CalendarField.values()) System.out.println(c);
public static CalendarField 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 get(Calendar calendar)
public void add(Calendar calendar, int amount)
amount
to calendar
according to field.Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.