public class CardinalityRange
extends org.faktorips.valueset.IntegerRange
CardinalityRange is defined by a lower and an upper
bound as well as a default value.| Modifier and Type | Field and Description |
|---|---|
static CardinalityRange |
FULL_RANGE
A cardinality that describes the full range from 0 to * with default 0.
|
static CardinalityRange |
MANDATORY
A cardinality that describes the obligatory range 1 to 1 with default 1.
|
static CardinalityRange |
OPTIONAL
A cardinality that describes the optional range from 0 to 1 with default 0.
|
| Constructor and Description |
|---|
CardinalityRange(Integer lower,
Integer upper,
Integer def)
Constructs a
CardinalityRange with the given lower and upper bounds as well as the
given default value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getDefaultCardinality() |
int |
hashCode() |
String |
toString() |
checkIfValueCompliesToStepIncrement, getNextValue, getNullValue, sizeForDiscreteValuesExcludingNull, valueOf, valueOf, valueOf, valueOf, valueOfpublic static final CardinalityRange OPTIONAL
public static final CardinalityRange MANDATORY
public static final CardinalityRange FULL_RANGE
public CardinalityRange(Integer lower, Integer upper, Integer def)
CardinalityRange with the given lower and upper bounds as well as the
given default value. The default value must be in between the lower and upper bound or equal
to one of them (though not Integer.MAX_VALUE).lower - the lowest possible cardinalityupper - the highest possible cardinalitydef - the default cardinality, must be in between or equal to one of the boundsIllegalArgumentException - if the default value is not in the range.Copyright © 2019. All rights reserved.