Interval

scalus.ledger.api.v1.Interval
See theInterval companion class
object Interval

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Interval.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def after(time: PosixTime): Interval

Creates an interval that includes all values greater than the given bound. i.e [lower_bound,+∞)

Creates an interval that includes all values greater than the given bound. i.e [lower_bound,+∞)

Attributes

def before(time: PosixTime): Interval

Creates an interval that includes all values less than the given bound. i.e (-∞,upper_bound]

Creates an interval that includes all values less than the given bound. i.e (-∞,upper_bound]

Attributes

def between(from: PosixTime, to: PosixTime): Interval

Creates an interval that includes all values between the given bounds. i.e [lower_bound, upper_bound]

Creates an interval that includes all values between the given bounds. i.e [lower_bound, upper_bound]

Attributes

Create a finite inclusive interval bound

Create a finite inclusive interval bound

Attributes

Concrete fields

Inclusive -∞ to +∞ interval

Inclusive -∞ to +∞ interval

Attributes

Inclusive -∞ interval bound

Inclusive -∞ interval bound

Attributes

An empty interval that contains no values, ∄ posixTime ∣ never.contains(posixTime)

An empty interval that contains no values, ∄ posixTime ∣ never.contains(posixTime)

Attributes

Inclusive +∞ interval bound

Inclusive +∞ interval bound

Attributes

lazy val sirDeps: List[SIRModuleWithDeps]
lazy val sirModule: Module

Extensions

Extensions

extension (self: Interval)
def contains(time: PosixTime): Boolean
def entirelyAfter(time: PosixTime): Boolean

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

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

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