Interval

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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]

Attributes

V1

the lower bound, inclusive.

V2

the upper bound, inclusive.

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)

Attributes

V1

the lower bound, inclusive.

V2

the upper bound, exclusive.

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)

Attributes

V1

the lower bound, exclusive.

V2

the upper bound, exclusive.

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]

Attributes

V1

the lower bound, exclusive.

V2

the upper bound, inclusive.