|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DateTools.Resolution> org.apache.lucene.document.DateTools.Resolution
public static enum DateTools.Resolution
Specifies the time granularity.
Enum Constant Summary | |
---|---|
DAY
Limit a date's resolution to day granularity. |
|
HOUR
Limit a date's resolution to hour granularity. |
|
MILLISECOND
Limit a date's resolution to millisecond granularity. |
|
MINUTE
Limit a date's resolution to minute granularity. |
|
MONTH
Limit a date's resolution to month granularity. |
|
SECOND
Limit a date's resolution to second granularity. |
|
YEAR
Limit a date's resolution to year granularity. |
Method Summary | |
---|---|
String |
toString()
this method returns the name of the resolution in lowercase (for backwards compatibility) |
static DateTools.Resolution |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DateTools.Resolution[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DateTools.Resolution YEAR
public static final DateTools.Resolution MONTH
public static final DateTools.Resolution DAY
public static final DateTools.Resolution HOUR
public static final DateTools.Resolution MINUTE
public static final DateTools.Resolution SECOND
public static final DateTools.Resolution MILLISECOND
Method Detail |
---|
public static DateTools.Resolution[] values()
for (DateTools.Resolution c : DateTools.Resolution.values()) System.out.println(c);
public static DateTools.Resolution valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<DateTools.Resolution>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |