Enum Class LuceneUtils.Resolution
java.lang.Object
java.lang.Enum<LuceneUtils.Resolution>
com.atlassian.confluence.search.v2.lucene.LuceneUtils.Resolution
- All Implemented Interfaces:
Serializable
,Comparable<LuceneUtils.Resolution>
,Constable
- Enclosing class:
- LuceneUtils
Specifies the time granularity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLimit a date's resolution to day granularity.Limit a date's resolution to hour granularity.Limit a date's resolution to millisecond granularity.Limit a date's resolution to minute granularity.Limit a date's resolution to month granularity.Limit a date's resolution to second granularity.Limit a date's resolution to year granularity. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
this method returns the name of the resolution in lowercase (for backwards compatibility)static LuceneUtils.Resolution
Returns the enum constant of this class with the specified name.static LuceneUtils.Resolution[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YEAR
Limit a date's resolution to year granularity. -
MONTH
Limit a date's resolution to month granularity. -
DAY
Limit a date's resolution to day granularity. -
HOUR
Limit a date's resolution to hour granularity. -
MINUTE
Limit a date's resolution to minute granularity. -
SECOND
Limit a date's resolution to second granularity. -
MILLISECOND
Limit a date's resolution to millisecond granularity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFormat
- Returns:
- the date format to convert dates into string for this resolution
- Since:
- 8.6
-
toString
this method returns the name of the resolution in lowercase (for backwards compatibility)- Overrides:
toString
in classEnum<LuceneUtils.Resolution>
-