Package de.xima.fc.utils.range
Enum 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 of
EndpointAccessor
s for accessing the end points of Range
objects.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccessor for the lower end point of a range.Accessor for the lower end point of a range.Accessor for the lower end point of a range.Accessor for the lower end point of a range.Accessor for the upper end point of a range.Accessor for the upper end point of a range.Accessor for the upper end point of a range.Accessor for the upper end point of a range. -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static <C extends Comparable>
EndpointAccessor<com.google.common.collect.Range<C>,C> static EndpointAccessorsRange
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 Details
-
LOWER_ENDPOINT
Accessor for the lower end point of a range. TheBoundType
is preserved. -
LOWER_ENDPOINT_CLOSED
Accessor for the lower end point of a range. TheBoundType
is changed toBoundType.CLOSED
. -
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
Accessor for the lower end point of a range. TheBoundType
is changed toBoundType.OPEN
. -
UPPER_ENDPOINT
Accessor for the upper end point of a range. TheBoundType
is preserved. -
UPPER_ENDPOINT_CLOSED
Accessor for the upper end point of a range. TheBoundType
is changed toBoundType.CLOSED
. -
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
Accessor for the upper end point of a range. TheBoundType
is changed toBoundType.OPEN
.
-
-
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
-
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
.
-