public interface EndpointDescriptor extends EndpointType
Range. An endpoint can be either a
lower or upper end point, it can be closed or open, and it can have a bound or not. Unbounded end points describe
negative or positive infinity and are used for open or half-open ranges such as (-Infinity, +Infinity).| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.BoundType |
getBoundType() |
EndpointDirection |
getDirection() |
boolean |
hasBound() |
default boolean |
isLowerPoint() |
default boolean |
isUpperPoint() |
default <C extends Comparable> |
toAcessor()
Converts this descriptor into an end point accessor for a given point object.
|
default <C extends Comparable> |
toEndpoint(C point) |
com.google.common.collect.BoundType getBoundType()
getBoundType in interface EndpointTypeEndpointDirection getDirection()
getDirection in interface EndpointTypeboolean hasBound()
default boolean isLowerPoint()
default boolean isUpperPoint()
default <C extends Comparable> EndpointAccessor<C,C> toAcessor()
C - Type of the end points of a Range.default <C extends Comparable> Endpoint<C> toEndpoint(C point)
C - Type of the end points of a Range.point - An end point object to use.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.