Cardinality

Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case
object AtLeastOne extends Cardinality

Represents x..y cardinality where x > 0, should be some non-empty list type *

Represents x..y cardinality where x > 0, should be some non-empty list type *

case
object Many extends Cardinality

Represents 0..y cardinality where y > 1, should be some list type *

Represents 0..y cardinality where y > 1, should be some list type *

case
object One extends Cardinality

Represents 1..1 cardinality, should be just the value alone *

Represents 1..1 cardinality, should be just the value alone *

case
object Optional extends Cardinality

Represents 0..1 cardinality, should be some optional/nullable type *

Represents 0..1 cardinality, should be some optional/nullable type *

case
object Zero extends Cardinality

Represents 0..0 cardinality, should be omitted *

Represents 0..0 cardinality, should be omitted *

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(min: Int, maxString: String): Option[Cardinality]
def apply(min: Int, max: Int): Cardinality