Package net.corda.v5.ledger.utxo
Interface TimeWindow
-
- All Implemented Interfaces:
@DoNotImplement() public interface TimeWindow
Defines an interval on a timeline; not a single, instantaneous point.
There is no such thing as "exact" time in distributed systems, due to the underlying physics involved, and other issues such as network latency. A time window represents an approximation of an instant with a margin of tolerance, and may be fully bounded.
-
-
Method Summary
Modifier and Type Method Description abstract Instant
getFrom()
Gets the boundary at which the time window begins. abstract Instant
getUntil()
Gets the boundary at which the time window ends. abstract boolean
contains(@NotNull() Instant instant)
Determines whether the current TimeWindow contains the specified Instant. -
-
Method Detail
-
contains
abstract boolean contains(@NotNull() Instant instant)
Determines whether the current TimeWindow contains the specified Instant.
- Parameters:
instant
- The Instant to check is contained within the current TimeWindow.
-
-
-
-