Class ElementCountConstraint
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.api.ElementCountConstraint
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static @NonNull ElementCountConstraint
atLeast(int minElements)
static @NonNull ElementCountConstraint
atMost(int maxElements)
boolean
equals(Object obj)
static @NonNull Optional<ElementCountConstraint>
forNullable(@Nullable Integer minElements, @Nullable Integer maxElements)
abstract @Nullable Integer
getMaxElements()
Returns the maximum admissible number of data elements for node where this constraint is specified.abstract @Nullable Integer
getMinElements()
Returns the minimum required number of data elements for node where this constraint is specified.int
hashCode()
static @NonNull ElementCountConstraint
inRange(int minElements, int maxElements)
String
toString()
-
-
-
Method Detail
-
atLeast
public static @NonNull ElementCountConstraint atLeast(int minElements)
-
atMost
public static @NonNull ElementCountConstraint atMost(int maxElements)
-
inRange
public static @NonNull ElementCountConstraint inRange(int minElements, int maxElements)
-
forNullable
public static @NonNull Optional<ElementCountConstraint> forNullable(@Nullable Integer minElements, @Nullable Integer maxElements)
-
getMinElements
public abstract @Nullable Integer getMinElements()
Returns the minimum required number of data elements for node where this constraint is specified.The returning value equals to value of the argument of the min-elements YANG substatement. It is used with YANG statements leaf-list, list, deviate.
- Returns:
- integer with minimal number of elements, or null if no minimum is defined
-
getMaxElements
public abstract @Nullable Integer getMaxElements()
Returns the maximum admissible number of data elements for node where this constraint is specified.The returning value equals to value of the argument of the max-elements YANG substatement. It is used with YANG statements leaf-list, list, deviate.
- Returns:
- integer with maximum number of elements, or null if no maximum is defined
-
-