Package de.xima.fc.utils.range
Enum EndpointDescriptors
- java.lang.Object
-
- java.lang.Enum<EndpointDescriptors>
-
- de.xima.fc.utils.range.EndpointDescriptors
-
- All Implemented Interfaces:
EndpointDescriptor
,EndpointType
,Serializable
,Comparable<EndpointDescriptors>
public enum EndpointDescriptors extends Enum<EndpointDescriptors> implements EndpointDescriptor
An enumeration with implementations ofEndpointDescriptor
s.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
valueOf(String name)
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 Detail
-
LOWER_ENDPOINT_CLOSED
public static final EndpointDescriptors LOWER_ENDPOINT_CLOSED
Lower closed end point of a range.
-
LOWER_ENDPOINT_OPEN
public static final EndpointDescriptors LOWER_ENDPOINT_OPEN
Lower open end point of a range.
-
NEGATIVE_INFINITY
public static final EndpointDescriptors NEGATIVE_INFINITY
Minus infinity for a half open or open range.
-
POSITIVE_INFINITY
public static final EndpointDescriptors POSITIVE_INFINITY
Positive infinity for a half open or open range.
-
UPPER_ENDPOINT_CLOSED
public static final EndpointDescriptors UPPER_ENDPOINT_CLOSED
Upper closed end point of a range.
-
UPPER_ENDPOINT_OPEN
public static final EndpointDescriptors UPPER_ENDPOINT_OPEN
Upper open end point of a range.
-
-
Method Detail
-
values
public static EndpointDescriptors[] 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 (EndpointDescriptors c : EndpointDescriptors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndpointDescriptors 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
-
lower
public static EndpointDescriptor lower(com.google.common.collect.BoundType boundType)
- Parameters:
boundType
- A bound type to use.- Returns:
- A lower end point descriptor for the given bound type.
-
lower
public static EndpointDescriptor lower(com.google.common.collect.Range<?> range)
- Parameters:
range
- A range to check.- Returns:
- An end point descriptor for the lower end point of the given range.
-
upper
public static EndpointDescriptor upper(com.google.common.collect.BoundType boundType)
- Parameters:
boundType
- A bound type to use.- Returns:
- An upper end point descriptor for the given bound type.
-
upper
public static EndpointDescriptor upper(com.google.common.collect.Range<?> range)
- Parameters:
range
- A range to check.- Returns:
- An end point descriptor for the upper end point of the given range.
-
-