public enum AggregateCounterResolution extends Enum<AggregateCounterResolution>
| 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 AggregateCounterResolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AggregateCounterResolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AggregateCounterResolution minute
public static final AggregateCounterResolution hour
public static final AggregateCounterResolution day
public static final AggregateCounterResolution month
public static final AggregateCounterResolution year
public static AggregateCounterResolution[] values()
for (AggregateCounterResolution c : AggregateCounterResolution.values()) System.out.println(c);
public static AggregateCounterResolution 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 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 subtractCopyright © 2016 Pivotal Software, Inc.. All rights reserved.