Interval

io.github.iltotore.iron.constraint.numeric.Interval
object Interval

Attributes

Source
numeric.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Interval.type

Members list

Type members

Types

type Closed[V1, V2] = DescribedAs[GreaterEqual[V1] & LessEqual[V2], "Should be included in [" + V1 + ", " + V2 + "]"]

Tests if the input is included in [V1, V2]

Tests if the input is included in [V1, V2]

Type parameters

V1

the lower bound, inclusive.

V2

the upper bound, inclusive.

Attributes

Source
numeric.scala
type ClosedOpen[V1, V2] = DescribedAs[GreaterEqual[V1] & Less[V2], "Should be included in [" + V1 + ", " + V2 + ")"]

Tests if the input is included in [V1, V2)

Tests if the input is included in [V1, V2)

Type parameters

V1

the lower bound, inclusive.

V2

the upper bound, exclusive.

Attributes

Source
numeric.scala
type Open[V1, V2] = DescribedAs[Greater[V1] & Less[V2], "Should be included in (" + V1 + ", " + V2 + ")"]

Tests if the input is included in (V1, V2)

Tests if the input is included in (V1, V2)

Type parameters

V1

the lower bound, exclusive.

V2

the upper bound, exclusive.

Attributes

Source
numeric.scala
type OpenClosed[V1, V2] = DescribedAs[Greater[V1] & LessEqual[V2], "Should be included in (" + V1 + ", " + V2 + "]"]

Tests if the input is included in (V1, V2]

Tests if the input is included in (V1, V2]

Type parameters

V1

the lower bound, exclusive.

V2

the upper bound, inclusive.

Attributes

Source
numeric.scala