T - generic temporal typepublic final class Boundary<T> extends Object implements Serializable
Represents an interval boundary, either the lower one or the upper one.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getTemporal()
Yields the time point of this interval boundary.
|
int |
hashCode() |
static <T> Boundary<T> |
infiniteFuture()
Defines a symbolic open boundary for the infinite future.
|
static <T> Boundary<T> |
infinitePast()
Defines a symbolic open boundary for the infinite past.
|
boolean |
isClosed()
Determines if this boundary is closed.
|
boolean |
isInfinite()
Determines if this boundary is infinite.
|
boolean |
isOpen()
Determines if this boundary is open.
|
static <T> Boundary<T> |
ofClosed(T temporal)
Defines a finite closed boundary for the specified
time point.
|
static <T> Boundary<T> |
ofOpen(T temporal)
Defines a finite open boundary for the specified time
point.
|
String |
toString()
Yields a descriptive string.
|
public static <T> Boundary<T> infinitePast()
Defines a symbolic open boundary for the infinite past.
T - generic temporal typepublic static <T> Boundary<T> infiniteFuture()
Defines a symbolic open boundary for the infinite future.
T - generic temporal typepublic static <T> Boundary<T> ofOpen(T temporal)
Defines a finite open boundary for the specified time point.
T - generic temporal typetemporal - time of the boundaryinfinitePast(),
infiniteFuture(),
isOpen()public static <T> Boundary<T> ofClosed(T temporal)
Defines a finite closed boundary for the specified time point.
T - generic temporal typetemporal - time of the boundaryinfinitePast(),
infiniteFuture(),
isClosed()public T getTemporal()
Yields the time point of this interval boundary.
null if infiniteisInfinite()public boolean isOpen()
Determines if this boundary is open.
If open then the associated time point does not belong to a given interval with this boundary.
true if open else falseofOpen(T)public boolean isClosed()
Determines if this boundary is closed.
If closed then the associated time point belongs to a given interval with this boundary.
true if closed else falseofClosed(T)public boolean isInfinite()
Determines if this boundary is infinite.
If infinite then the associated time point is not defined.
true if infinite else falsegetTemporal()Copyright © 2014–2018. All rights reserved.