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

public static enum LuceneUtils.Resolution extends Enum<LuceneUtils.Resolution>
Specifies the time granularity.
  • Enum Constant Details

  • Method Details

    • values

      public static LuceneUtils.Resolution[] 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

      public static LuceneUtils.Resolution valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFormat

      public SimpleDateFormat getFormat()
      Returns:
      the date format to convert dates into string for this resolution
      Since:
      8.6
    • toString

      public String toString()
      this method returns the name of the resolution in lowercase (for backwards compatibility)
      Overrides:
      toString in class Enum<LuceneUtils.Resolution>