public static enum Granularity.Type extends Enum<Granularity.Type>
| Enum Constant and Description |
|---|
ALL |
DAY |
HOUR |
MINUTE |
MONTH |
QUARTER |
SECOND |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static Granularity.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Granularity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Granularity.Type ALL
public static final Granularity.Type YEAR
public static final Granularity.Type QUARTER
public static final Granularity.Type MONTH
public static final Granularity.Type WEEK
public static final Granularity.Type DAY
public static final Granularity.Type HOUR
public static final Granularity.Type MINUTE
public static final Granularity.Type SECOND
public final String lowerName
public static Granularity.Type[] values()
for (Granularity.Type c : Granularity.Type.values()) System.out.println(c);
public static Granularity.Type 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 nullCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.