public enum AggregateCountResolution extends java.lang.Enum<AggregateCountResolution>
| Modifier and Type | Field and Description |
|---|---|
org.joda.time.ReadablePeriod |
unitPeriod |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
minus(org.joda.time.DateTime dt,
int n)
Subtracts this resolution a given number of times from a supplied date.
|
static AggregateCountResolution |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AggregateCountResolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AggregateCountResolution minute
public static final AggregateCountResolution hour
public static final AggregateCountResolution day
public static final AggregateCountResolution month
public static final AggregateCountResolution year
public static AggregateCountResolution[] values()
for (AggregateCountResolution c : AggregateCountResolution.values()) System.out.println(c);
public static AggregateCountResolution valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic org.joda.time.DateTime minus(org.joda.time.DateTime dt,
int n)
dt - the date to subtract fromn - the number of periods of this resolution to subtract