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(Instant dateTimeMillis)

Returns whether the TimeRange contains a given point in time.

boolean
equals(Object other)
int
@NonNull String

Public fields

endDateTimeMillis

public final @NonNull Instant endDateTimeMillis

startDateTimeMillis

public final @NonNull Instant startDateTimeMillis

Public methods

contains

public final boolean contains(Instant dateTimeMillis)

Returns whether the TimeRange contains a given point in time.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()