public enum Duration extends Enum<Duration>
Java class for Duration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Duration"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="LAST_1_DAY"/> <enumeration value="LAST_3_DAYS"/> <enumeration value="LAST_7_DAYS"/> <enumeration value="MONTHTODATE"/> <enumeration value="LASTMONTH"/> <enumeration value="CUSTOM"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CUSTOM |
LAST_1_DAY |
LAST_3_DAYS |
LAST_7_DAYS |
LASTMONTH |
MONTHTODATE |
Modifier and Type | Method and Description |
---|---|
static Duration |
fromValue(String v) |
String |
value() |
static Duration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Duration LAST_1_DAY
public static final Duration LAST_3_DAYS
public static final Duration LAST_7_DAYS
public static final Duration MONTHTODATE
public static final Duration LASTMONTH
public static final Duration CUSTOM
public static Duration[] values()
for (Duration c : Duration.values()) System.out.println(c);
public static Duration 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 String value()
Copyright © 2023. All rights reserved.