- java.lang.Object
-
- java.lang.Enum<Interval.Closure>
-
- com.pervasive.datarush.analytics.stats.Interval.Closure
-
- All Implemented Interfaces:
Serializable
,Comparable<Interval.Closure>
- Enclosing class:
- Interval<T extends Number & Comparable<? super T>>
public static enum Interval.Closure extends Enum<Interval.Closure>
Enumeration of allowed values for the "closure" attribute of theInterval
element.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description closedClosed
The interval is of the form [leftMargin,rightMargin]closedOpen
The interval is of the form [leftMargin,rightMargin)openClosed
The interval is of the form (leftMargin,rightMargin]openOpen
The interval is of the form (leftMargin,rightMargin)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Interval.Closure
closure(boolean fromClosed, boolean toClosed)
Returns a closure for the given parametersstatic Interval.Closure
valueOf(String name)
Returns the enum constant of this type with the specified name.static Interval.Closure[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
openClosed
public static final Interval.Closure openClosed
The interval is of the form (leftMargin,rightMargin]
-
openOpen
public static final Interval.Closure openOpen
The interval is of the form (leftMargin,rightMargin)
-
closedOpen
public static final Interval.Closure closedOpen
The interval is of the form [leftMargin,rightMargin)
-
closedClosed
public static final Interval.Closure closedClosed
The interval is of the form [leftMargin,rightMargin]
-
-
Method Detail
-
values
public static Interval.Closure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Interval.Closure c : Interval.Closure.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Interval.Closure valueOf(String name)
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
-
closure
public static Interval.Closure closure(boolean fromClosed, boolean toClosed)
Returns a closure for the given parameters- Parameters:
fromClosed
- whether the from side is closedtoClosed
- whether the to side is closed- Returns:
- a closure
-
-