TimeRange
public final class TimeRange
A range of time, that may be unbounded on either side.
Summary
Public methods |
|
|---|---|
static final @NonNull TimeRange |
Constructs a time range after a given point in time. |
static final @NonNull TimeRange |
Constructs a time range until a given point in time. |
static final @NonNull TimeRange |
Constructs a time range between two points in time, inclusive of the points themselves. |
final boolean |
Returns whether the |
boolean |
|
final @NonNull Instant |
|
final @NonNull Instant |
|
int |
hashCode() |
@NonNull String |
toString() |
Public fields
Public methods
after
Added in 1.0.0
public static final @NonNull TimeRange after(@NonNull Instant startInstant)
Constructs a time range after a given point in time.
before
Added in 1.0.0
public static final @NonNull TimeRange before(@NonNull Instant endInstant)
Constructs a time range until a given point in time.
between
Added in 1.0.0
public static final @NonNull TimeRange between(@NonNull Instant startInstant, @NonNull Instant endInstant)
Constructs a time range between two points in time, inclusive of the points themselves.