public enum EndpointTypes extends Enum<EndpointTypes> implements EndpointType
EndpointType
s.Enum Constant and Description |
---|
LOWER_CLOSED
Closed lower end of an interval (
[ ). |
LOWER_OPEN
Open lower end of an interval (
( ). |
UPPER_CLOSED
Closed upper end of an interval (
] ). |
UPPER_OPEN
Open upper end of an interval (
) ). |
Modifier and Type | Method and Description |
---|---|
static EndpointTypeComparator |
createComparator(EndpointTypes... order)
Creates a new end point comparator that compares end points in the given order.
|
com.google.common.collect.BoundType |
getBoundType() |
EndpointDirection |
getDirection() |
static EndpointTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndpointTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointTypes LOWER_CLOSED
[
).public static final EndpointTypes LOWER_OPEN
(
).public static final EndpointTypes UPPER_CLOSED
]
).public static final EndpointTypes UPPER_OPEN
)
).public static EndpointTypes[] values()
for (EndpointTypes c : EndpointTypes.values()) System.out.println(c);
public static EndpointTypes 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 com.google.common.collect.BoundType getBoundType()
getBoundType
in interface EndpointType
public EndpointDirection getDirection()
getDirection
in interface EndpointType
public static EndpointTypeComparator createComparator(EndpointTypes... order)
order
- Target order of the end points.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.