Package de.xima.fc.utils.range
Enum EndpointDescriptors
- All Implemented Interfaces:
EndpointDescriptor
,EndpointType
,Serializable
,Comparable<EndpointDescriptors>
An enumeration with implementations of
EndpointDescriptor
s.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLower closed end point of a range.Lower open end point of a range.Minus infinity for a half open or open range.Positive infinity for a half open or open range.Upper closed end point of a range.Upper open end point of a range. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointDescriptor
lower
(com.google.common.collect.BoundType boundType) static EndpointDescriptor
lower
(com.google.common.collect.Range<?> range) static EndpointDescriptor
upper
(com.google.common.collect.BoundType boundType) static EndpointDescriptor
upper
(com.google.common.collect.Range<?> range) static EndpointDescriptors
Returns the enum constant of this type with the specified name.static EndpointDescriptors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface de.xima.fc.utils.range.EndpointDescriptor
getBoundType, getDirection, hasBound, isLowerPoint, isUpperPoint, toAcessor, toEndpoint
-
Enum Constant Details
-
LOWER_ENDPOINT_CLOSED
Lower closed end point of a range. -
LOWER_ENDPOINT_OPEN
Lower open end point of a range. -
NEGATIVE_INFINITY
Minus infinity for a half open or open range. -
POSITIVE_INFINITY
Positive infinity for a half open or open range. -
UPPER_ENDPOINT_CLOSED
Upper closed end point of a range. -
UPPER_ENDPOINT_OPEN
Upper open end point of a range.
-
-
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
-
lower
- Parameters:
boundType
- A bound type to use.- Returns:
- A lower end point descriptor for the given bound type.
-
lower
- Parameters:
range
- A range to check.- Returns:
- An end point descriptor for the lower end point of the given range.
-
upper
- Parameters:
boundType
- A bound type to use.- Returns:
- An upper end point descriptor for the given bound type.
-
upper
- Parameters:
range
- A range to check.- Returns:
- An end point descriptor for the upper end point of the given range.
-