public static enum I_CmsListDateRestriction.TimeUnit extends java.lang.Enum<I_CmsListDateRestriction.TimeUnit>
| Enum Constant and Description |
|---|
DAYS
Days.
|
MONTHS
Months.
|
WEEKS
Weeks.
|
YEARS
Years.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatForRange(int count)
Formats a positive integer amount of the given unit for use in Solr range queries.
|
static I_CmsListDateRestriction.TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static I_CmsListDateRestriction.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final I_CmsListDateRestriction.TimeUnit DAYS
public static final I_CmsListDateRestriction.TimeUnit WEEKS
public static final I_CmsListDateRestriction.TimeUnit MONTHS
public static final I_CmsListDateRestriction.TimeUnit YEARS
public static I_CmsListDateRestriction.TimeUnit[] values()
for (I_CmsListDateRestriction.TimeUnit c : I_CmsListDateRestriction.TimeUnit.values()) System.out.println(c);
public static I_CmsListDateRestriction.TimeUnit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String formatForRange(int count)
count - the number