Package de.xima.fc.utils.range
Enum EndpointDirection
- All Implemented Interfaces:
Serializable
,Comparable<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 ConstantsEnum ConstantDescriptionThe end point is a lower end point.The end point is an upper end point. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The numerical representation of this end point direction,-1
forNEGATIVE_INFINITY
and+1
forPOSITIVE_INFINITY
. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointDirection
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 Details
-
NEGATIVE_INFINITY
The end point is a lower end point. -
POSITIVE_INFINITY
The end point is an upper end point.
-
-
Field Details
-
order
public final int orderThe numerical representation of this end point direction,-1
forNEGATIVE_INFINITY
and+1
forPOSITIVE_INFINITY
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-