Package de.xima.fc.utils.range
Enum EndpointDirection
- java.lang.Object
-
- java.lang.Enum<EndpointDirection>
-
- de.xima.fc.utils.range.EndpointDirection
-
- All Implemented Interfaces:
Serializable
,Comparable<EndpointDirection>
public enum EndpointDirection extends Enum<EndpointDirection>
Describes the direction or type of end point, i.e. whether it is a lower or upper end point.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEGATIVE_INFINITY
The end point is a lower end point.POSITIVE_INFINITY
The end point is an upper end point.
-
Field Summary
Fields Modifier and Type Field Description int
order
The numerical representation of this end point direction,-1
forNEGATIVE_INFINITY
and+1
forPOSITIVE_INFINITY
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EndpointDirection
valueOf(String name)
Returns the enum constant of this type with the specified name.static EndpointDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEGATIVE_INFINITY
public static final EndpointDirection NEGATIVE_INFINITY
The end point is a lower end point.
-
POSITIVE_INFINITY
public static final EndpointDirection POSITIVE_INFINITY
The end point is an upper end point.
-
-
Field Detail
-
order
public final int order
The numerical representation of this end point direction,-1
forNEGATIVE_INFINITY
and+1
forPOSITIVE_INFINITY
.
-
-
Method Detail
-
values
public static EndpointDirection[] 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 (EndpointDirection c : EndpointDirection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndpointDirection 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
-
-