Modifier and Type | Method and Description |
---|---|
static ElementCountConstraint |
atLeast(int minElements) |
static ElementCountConstraint |
atMost(int maxElements) |
boolean |
equals(Object obj) |
static Optional<ElementCountConstraint> |
forNullable(Integer minElements,
Integer maxElements) |
abstract Integer |
getMaxElements()
Returns the maximum admissible number of data elements for node where
this constraint is specified.
|
abstract Integer |
getMinElements()
Returns the minimum required number of data elements for node where this
constraint is specified.
|
int |
hashCode() |
static ElementCountConstraint |
inRange(int minElements,
int maxElements) |
String |
toString() |
public static ElementCountConstraint atLeast(int minElements)
public static ElementCountConstraint atMost(int maxElements)
public static ElementCountConstraint inRange(int minElements, int maxElements)
public static Optional<ElementCountConstraint> forNullable(@Nullable Integer minElements, @Nullable Integer maxElements)
@Nullable public abstract Integer getMinElements()
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.
@Nullable public abstract Integer getMaxElements()
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.
Copyright © 2019 OpenDaylight. All rights reserved.