max abstract method

int max()

Returns the concrete maximum number of elements allowed by this limit.

This method must only be invoked when isLimited is true.
Calling this on an unlimited instance is invalid and may result in an exception, since unlimited limits do not define a numeric upper bound.

Implementation

int max();