Enum DateGranularity
- All Implemented Interfaces:
ValueEnum,Serializable,Comparable<DateGranularity>,Constable
Facet.dateGranularity. Every granularity names an absolute period, so January 2024 and January 2025 are separate buckets. That is the meaning of the ListGrid's "monthAndYear" grouping mode, and the grid's cross-year modes - which fold every January together whatever the year - have no equivalent here, because such a group cannot be named by a single date. The grid's spellings for the periods that are absolute are accepted as synonyms, so "monthAndYear", "quarterAndYear" and "weekAndYear" mean the same as "month", "quarter" and "year".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionone bucket per centuryone bucket per dayone bucket per decadeone bucket per hourone bucket per minuteone bucket per calendar monthone bucket per calendar quarterone bucket per secondone bucket per week, starting onDateUtil.getFirstDayOfWeek()one bucket per calendar year -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static DateGranularityReturns the enum constant of this type with the specified name.static DateGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SECOND
one bucket per secondIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "second". -
MINUTE
one bucket per minuteIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "minute". -
HOUR
one bucket per hourIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "hour". -
DAY
one bucket per dayIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "day". -
WEEK
one bucket per week, starting onDateUtil.getFirstDayOfWeek()If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "week". -
MONTH
one bucket per calendar monthIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "month". -
QUARTER
one bucket per calendar quarterIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "quarter". -
YEAR
one bucket per calendar yearIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "year". -
DECADE
one bucket per decadeIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "decade". -
CENTURY
one bucket per centuryIf this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "century".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-