Package io.keikai.axyra.sheets.content
Enum Class TimePeriod
- All Implemented Interfaces:
Serializable,Comparable<TimePeriod>,Constable
The date window of a "date occurring" conditional-formatting rule —
ECMA-376 §18.18.82
ST_TimePeriod. Used by
ConditionalFormat.Builder.dateOccurring(TimePeriod); "today" is the
date when the workbook is calculated, and a cell's time of day is ignored.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe last seven days, today included.The previous calendar month.The previous Sunday-to-Saturday week.The next calendar month.The next Sunday-to-Saturday week.The current calendar month.The current Sunday-to-Saturday week.Dates equal to today.Dates equal to today plus one day.Dates equal to today minus one day. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimePeriodThe enum for an ST_TimePeriod token, ornullif unknown.token()The ST_TimePeriod token crossed to the engine.static TimePeriodReturns the enum constant of this class with the specified name.static TimePeriod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TODAY
Dates equal to today. -
YESTERDAY
Dates equal to today minus one day. -
TOMORROW
Dates equal to today plus one day. -
LAST_7_DAYS
The last seven days, today included. -
THIS_WEEK
The current Sunday-to-Saturday week. -
LAST_WEEK
The previous Sunday-to-Saturday week. -
NEXT_WEEK
The next Sunday-to-Saturday week. -
THIS_MONTH
The current calendar month. -
LAST_MONTH
The previous calendar month. -
NEXT_MONTH
The next calendar month.
-
-
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
-
token
The ST_TimePeriod token crossed to the engine. -
from
The enum for an ST_TimePeriod token, ornullif unknown.
-