public enum TimeFilterUnits extends Enum<TimeFilterUnits>
Modifier and Type | Method and Description |
---|---|
static TimeFilterUnits |
getInstanceOf(String timeUnit) |
Long |
getMillisecondsWithinLast(long timeUnitValue) |
static TimeFilterUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeFilterUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeFilterUnits MINUTES
public static final TimeFilterUnits HOURS
public static final TimeFilterUnits DAYS
public static final TimeFilterUnits WEEKS
public final String key
public static TimeFilterUnits[] values()
for (TimeFilterUnits c : TimeFilterUnits.values()) System.out.println(c);
public static TimeFilterUnits 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 Long getMillisecondsWithinLast(long timeUnitValue)
public static TimeFilterUnits getInstanceOf(String timeUnit)
Copyright © 2002-2022 Atlassian. All Rights Reserved.