Package net.sf.eBusx.time
Enum EInterval.Clusivity
- java.lang.Object
-
- java.lang.Enum<EInterval.Clusivity>
-
- net.sf.eBusx.time.EInterval.Clusivity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EInterval.Clusivity>
- Enclosing class:
- EInterval
public static enum EInterval.Clusivity extends java.lang.Enum<EInterval.Clusivity>
Specifies whether an end point is inclusive or exclusive.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
beginSymbol()
Returns clusivity begin symbol.char
endSymbol()
Returns clusivity end symbol.static EInterval.Clusivity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EInterval.Clusivity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCLUSIVE
public static final EInterval.Clusivity INCLUSIVE
The end point time is included in the interval.
-
EXCLUSIVE
public static final EInterval.Clusivity EXCLUSIVE
The end point time is excluded from the interval.
-
-
Method Detail
-
values
public static EInterval.Clusivity[] 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 (EInterval.Clusivity c : EInterval.Clusivity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EInterval.Clusivity valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
beginSymbol
public char beginSymbol()
Returns clusivity begin symbol.- Returns:
- begin symbol.
-
endSymbol
public char endSymbol()
Returns clusivity end symbol.- Returns:
- end symbol.
-
-