@Beta public abstract class ElementCountConstraint extends Object
Modifier and Type | Method and 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() |
public static @NonNull ElementCountConstraint atLeast(int minElements)
public static @NonNull ElementCountConstraint atMost(int maxElements)
public static @NonNull ElementCountConstraint inRange(int minElements, int maxElements)
public static @NonNull Optional<ElementCountConstraint> forNullable(@Nullable Integer minElements, @Nullable Integer maxElements)
public abstract @Nullable 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.
public abstract @Nullable 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.