maxItems method
Adds a constraint that the list must have no more than n items.
Implementation
ListSchema<ItemBoundary, ItemRuntime> maxItems(int n) {
return withConstraint(ComparisonConstraint.listMaxItems<ItemRuntime>(n));
}
Adds a constraint that the list must have no more than n items.
ListSchema<ItemBoundary, ItemRuntime> maxItems(int n) {
return withConstraint(ComparisonConstraint.listMaxItems<ItemRuntime>(n));
}