Package de.xima.fc.utils.range
Enum EndpointAccessorsRange
- java.lang.Object
-
- java.lang.Enum<EndpointAccessorsRange>
-
- de.xima.fc.utils.range.EndpointAccessorsRange
-
- All Implemented Interfaces:
EndpointAccessor<com.google.common.collect.Range<? extends Comparable>,Comparable>
,Serializable
,Comparable<EndpointAccessorsRange>
public enum EndpointAccessorsRange extends Enum<EndpointAccessorsRange> implements EndpointAccessor<com.google.common.collect.Range<? extends Comparable>,Comparable>
An enumeration with implementations ofEndpointAccessor
s for accessing the end points ofRange
objects.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOWER_ENDPOINT
Accessor for the lower end point of a range.LOWER_ENDPOINT_CLOSED
Accessor for the lower end point of a range.LOWER_ENDPOINT_INVERTED
Accessor for the lower end point of a range.LOWER_ENDPOINT_OPEN
Accessor for the lower end point of a range.UPPER_ENDPOINT
Accessor for the upper end point of a range.UPPER_ENDPOINT_CLOSED
Accessor for the upper end point of a range.UPPER_ENDPOINT_INVERTED
Accessor for the upper end point of a range.UPPER_ENDPOINT_OPEN
Accessor for the upper end point of a range.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>lowerEndpoint()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>lowerEndpointClosed()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>lowerEndpointInverted()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>lowerEndpointOpen()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>upperEndpoint()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>upperEndpointClosed()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>upperEndpointInverted()
static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C>upperEndpointOpen()
static EndpointAccessorsRange
valueOf(String name)
Returns the enum constant of this type with the specified name.static EndpointAccessorsRange[]
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.EndpointAccessor
compareByEndpoint, compareByEndpoint, createByEndpointComparator, createByEndpointComparator, getBoundType, getDirection, getPoint, hasBound, mapping, toDescriptor, toEndpoint
-
-
-
-
Enum Constant Detail
-
LOWER_ENDPOINT
public static final EndpointAccessorsRange LOWER_ENDPOINT
Accessor for the lower end point of a range. TheBoundType
is preserved.
-
LOWER_ENDPOINT_CLOSED
public static final EndpointAccessorsRange LOWER_ENDPOINT_CLOSED
Accessor for the lower end point of a range. TheBoundType
is changed toBoundType.CLOSED
.
-
LOWER_ENDPOINT_INVERTED
public static final EndpointAccessorsRange LOWER_ENDPOINT_INVERTED
Accessor for the lower end point of a range. TheBoundType
is flipped (BoundType.CLOSED
. becomesBoundType.OPEN
and vice-versa).
-
LOWER_ENDPOINT_OPEN
public static final EndpointAccessorsRange LOWER_ENDPOINT_OPEN
Accessor for the lower end point of a range. TheBoundType
is changed toBoundType.OPEN
.
-
UPPER_ENDPOINT
public static final EndpointAccessorsRange UPPER_ENDPOINT
Accessor for the upper end point of a range. TheBoundType
is preserved.
-
UPPER_ENDPOINT_CLOSED
public static final EndpointAccessorsRange UPPER_ENDPOINT_CLOSED
Accessor for the upper end point of a range. TheBoundType
is changed toBoundType.CLOSED
.
-
UPPER_ENDPOINT_INVERTED
public static final EndpointAccessorsRange UPPER_ENDPOINT_INVERTED
Accessor for the upper end point of a range. TheBoundType
is flipped (BoundType.CLOSED
becomesBoundType.OPEN
and vice-versa).
-
UPPER_ENDPOINT_OPEN
public static final EndpointAccessorsRange UPPER_ENDPOINT_OPEN
Accessor for the upper end point of a range. TheBoundType
is changed toBoundType.OPEN
.
-
-
Method Detail
-
values
public static EndpointAccessorsRange[] 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 (EndpointAccessorsRange c : EndpointAccessorsRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndpointAccessorsRange 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
-
lowerEndpoint
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpoint()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the lower end point of a range. The
BoundType
is preserved.
-
lowerEndpointClosed
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointClosed()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the lower end point of a range. The
BoundType
is changed toBoundType.CLOSED
.
-
lowerEndpointInverted
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointInverted()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the lower end point of a range. The
BoundType
is flipped (BoundType.CLOSED
. becomesBoundType.OPEN
and vice-versa).
-
lowerEndpointOpen
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointOpen()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the lower end point of a range. The
BoundType
is changed toBoundType.OPEN
.
-
upperEndpoint
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpoint()
- Returns:
- Accessor for the upper end point of a range. The
BoundType
is preserved.
-
upperEndpointClosed
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointClosed()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the upper end point of a range. The
BoundType
is changed toBoundType.CLOSED
.
-
upperEndpointInverted
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointInverted()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the upper end point of a range. The
BoundType
is flipped (BoundType.CLOSED
becomesBoundType.OPEN
and vice-versa).
-
upperEndpointOpen
public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointOpen()
- Type Parameters:
C
- Type of the range's end points.- Returns:
- Accessor for the upper end point of a range. The
BoundType
is changed toBoundType.OPEN
.
-
-