Module datarush.analytics
Enum Class Interval.Closure
- All Implemented Interfaces:
Serializable,Comparable<Interval.Closure>,java.lang.constant.Constable
- Enclosing class:
- Interval<T extends Number & Comparable<? super T>>
Enumeration of allowed values for the "closure" attribute of the
Interval element.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe interval is of the form [leftMargin,rightMargin]The interval is of the form [leftMargin,rightMargin)The interval is of the form (leftMargin,rightMargin]The interval is of the form (leftMargin,rightMargin) -
Method Summary
Modifier and TypeMethodDescriptionstatic Interval.Closureclosure(boolean fromClosed, boolean toClosed) Returns a closure for the given parametersstatic Interval.ClosureReturns the enum constant of this class with the specified name.static Interval.Closure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
openClosed
The interval is of the form (leftMargin,rightMargin] -
openOpen
The interval is of the form (leftMargin,rightMargin) -
closedOpen
The interval is of the form [leftMargin,rightMargin) -
closedClosed
The interval is of the form [leftMargin,rightMargin]
-
-
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
-
closure
Returns a closure for the given parameters- Parameters:
fromClosed- whether the from side is closedtoClosed- whether the to side is closed- Returns:
- a closure
-