maxItems method

ListSchema<ItemBoundary, ItemRuntime> maxItems(
  1. int n
)

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));
}