public enum DateRangeEnum extends Enum<DateRangeEnum>
Enum Constant and Description |
---|
LASTDAY |
LASTMONTH |
LASTSIXMONTHS |
LASTTWODAYS |
LASTTWOYEARS |
LASTWEEK |
LASTYEAR |
Modifier and Type | Method and Description |
---|---|
DateRangeQuery.DateRange |
dateRange() |
static DateRangeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateRangeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateRangeEnum LASTDAY
public static final DateRangeEnum LASTTWODAYS
public static final DateRangeEnum LASTWEEK
public static final DateRangeEnum LASTMONTH
public static final DateRangeEnum LASTSIXMONTHS
public static final DateRangeEnum LASTYEAR
public static final DateRangeEnum LASTTWOYEARS
public static DateRangeEnum[] values()
for (DateRangeEnum c : DateRangeEnum.values()) System.out.println(c);
public static DateRangeEnum 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 DateRangeQuery.DateRange dateRange()
Copyright © 2003–2020 Atlassian. All rights reserved.