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
def entirelyAfter(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 entirelyBefore(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 entirelyBetween(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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product