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