Interval

scalus.ledger.api.v1.Interval
See theInterval companion object
case class Interval(from: IntervalBound, to: IntervalBound)

A type to represent time intervals.

Value parameters

from

the lower bound of the interval

to

the upper bound of the interval

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def contains(time: PosixTime): Boolean
Extension method from Interval

Checks if a given time is contained in the interval. Returns true if the time is within the bounds of the interval, taking into account whether the bounds are inclusive or exclusive.

Checks if a given time is contained in the interval. Returns true if the time is within the bounds of the interval, taking into account whether the bounds are inclusive or exclusive.

Attributes

def isEntirelyAfter(time: PosixTime): Boolean
Extension method from Interval

Checks if an interval is entirely after a given time. Returns true if all values in the interval are greater than the given time.

Checks if an interval is entirely after a given time. Returns true if all values in the interval are greater than the given time.

Attributes

def isEntirelyBefore(time: PosixTime): Boolean
Extension method from Interval

Checks if an interval is entirely before a given time. Returns true if all values in the interval are less than the given time.

Checks if an interval is entirely before a given time. Returns true if all values in the interval are less than the given time.

Attributes

def isEntirelyBetween(after: PosixTime, before: PosixTime): Boolean
Extension method from Interval

Checks if an interval is entirely between two given times. Returns true if all values in the interval are between the given times.

Checks if an interval is entirely between two given times. Returns true if all values in the interval are between the given times.

Attributes

def isNever: Boolean
Extension method from Interval

Checks if the interval is never, i.e., contains no values. Invariants expressed in IntervalTest should hold regardless of the implementation.

Checks if the interval is never, i.e., contains no values. Invariants expressed in IntervalTest should hold regardless of the implementation.

Attributes

inline def nonNever: Boolean
Extension method from Interval

Checks if the interval is non never, i.e., contains at least one value. Invariants expressed in IntervalTest should hold regardless of the implementation.

Checks if the interval is non never, i.e., contains at least one value. Invariants expressed in IntervalTest should hold regardless of the implementation.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product