Package io.revealbi.core
Enum Class RVPeriodRelation
- All Implemented Interfaces:
Serializable,Comparable<RVPeriodRelation>,Constable
Represents the relation of a period to the current date, for use in date rules.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll timeLast [period] = 1 [period] ago until todayNext [period] = beginning of next [period] until end of next [period]Previous [period] = beginning of last [period] until end of last [period].This [period] = beginning of current [period] until end of current [period][period] to date = beginning of current [period] until today -
Method Summary
Modifier and TypeMethodDescriptionstatic RVPeriodRelationReturns the enum constant of this class with the specified name.static RVPeriodRelation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All time -
LAST
Last [period] = 1 [period] ago until today -
PREVIOUS
Previous [period] = beginning of last [period] until end of last [period]. When going back a certain amount of months, quarters, semesters or years causes the day component to exceed the resulting month's duration, the day will be adjusted to fit. -
TO_DATE
[period] to date = beginning of current [period] until today -
THIS
This [period] = beginning of current [period] until end of current [period] -
NEXT
Next [period] = beginning of next [period] until end of next [period]
-
-
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
-
getSerializationFriendlyName
-