TimeRange

public final class TimeRange


A range of time, that may be unbounded on either side.

Summary

Nested types

TimeRange.Companion

Public methods

final boolean
contains(@NonNull Instant dateTimeMillis)

Returns whether the TimeRange contains a given point in time.

Public fields

endDateTimeMillis

@NonNull
public final @NonNull Instant endDateTimeMillis

startDateTimeMillis

@NonNull
public final @NonNull Instant startDateTimeMillis

Public methods

contains

@NonNull
public final boolean contains(@NonNull Instant dateTimeMillis)

Returns whether the TimeRange contains a given point in time.