spire.math.interval

Type members

Classlikes

sealed trait Bound[A]
Companion:
object
object Bound
Companion:
class
case class Closed[A](a: A) extends ValueBound[A]
case class EmptyBound[A]() extends Bound[A]
case class Open[A](a: A) extends ValueBound[A]
sealed abstract class Overlap[A] extends Product with Serializable

An ADT that represents overlapping result for any two intervals.

An ADT that represents overlapping result for any two intervals.

Companion:
object
object Overlap
Companion:
class
case class Unbound[A]() extends Bound[A]
sealed trait ValueBound[A] extends Bound[A]
Companion:
object
object ValueBound

Companion object for open/closed bounds, used to construct intervals from a set of bounds.

Companion object for open/closed bounds, used to construct intervals from a set of bounds.

In the comments, we write

  • [v, (v or ?v when the bound is interpreted as a lower bound,
  • v], v), v? when the bound is interpreted as an upper bound.

The symbols [], (), ? correspond to closed, open or unknown bounds.

Companion:
class