public enum EndpointAccessorsRange extends Enum<EndpointAccessorsRange> implements EndpointAccessor<com.google.common.collect.Range<? extends Comparable>,Comparable>
EndpointAccessor
s for accessing the end points of Range
objects.Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static <C extends Comparable> |
lowerEndpoint() |
static <C extends Comparable> |
lowerEndpointClosed() |
static <C extends Comparable> |
lowerEndpointInverted() |
static <C extends Comparable> |
lowerEndpointOpen() |
static <C extends Comparable> |
upperEndpoint() |
static <C extends Comparable> |
upperEndpointClosed() |
static <C extends Comparable> |
upperEndpointInverted() |
static <C extends Comparable> |
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
compareByEndpoint, compareByEndpoint, createByEndpointComparator, createByEndpointComparator, getBoundType, getDirection, getPoint, hasBound, mapping, toDescriptor, toEndpoint
public static final EndpointAccessorsRange LOWER_ENDPOINT
BoundType
is preserved.public static final EndpointAccessorsRange LOWER_ENDPOINT_CLOSED
BoundType
is changed to BoundType.CLOSED
.public static final EndpointAccessorsRange LOWER_ENDPOINT_INVERTED
BoundType
is flipped (BoundType.CLOSED
. becomes
BoundType.OPEN
and vice-versa).public static final EndpointAccessorsRange LOWER_ENDPOINT_OPEN
BoundType
is changed to BoundType.OPEN
.public static final EndpointAccessorsRange UPPER_ENDPOINT
BoundType
is preserved.public static final EndpointAccessorsRange UPPER_ENDPOINT_CLOSED
BoundType
is changed to BoundType.CLOSED
.public static final EndpointAccessorsRange UPPER_ENDPOINT_INVERTED
BoundType
is flipped (BoundType.CLOSED
becomes
BoundType.OPEN
and vice-versa).public static final EndpointAccessorsRange UPPER_ENDPOINT_OPEN
BoundType
is changed to BoundType.OPEN
.public static EndpointAccessorsRange[] values()
for (EndpointAccessorsRange c : EndpointAccessorsRange.values()) System.out.println(c);
public static EndpointAccessorsRange valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpoint()
C
- Type of the range's end points.BoundType
is preserved.public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointClosed()
C
- Type of the range's end points.BoundType
is changed to BoundType.CLOSED
.public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointInverted()
C
- Type of the range's end points.BoundType
is flipped (BoundType.CLOSED
.
becomes BoundType.OPEN
and vice-versa).public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointOpen()
C
- Type of the range's end points.BoundType
is changed to BoundType.OPEN
.public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpoint()
BoundType
is preserved.public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointClosed()
C
- Type of the range's end points.BoundType
is changed to BoundType.CLOSED
.public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointInverted()
C
- Type of the range's end points.BoundType
is flipped (BoundType.CLOSED
becomes BoundType.OPEN
and vice-versa).public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointOpen()
C
- Type of the range's end points.BoundType
is changed to BoundType.OPEN
.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.