Class LimitArg
Argument used to represent a limit.
-
Field Summary
Fields -
Method Summary
Methods inherited from class AbstractArg
toString
-
Field Details
-
MAXIMUM
public static int MAXIMUMThis is the default maximum used forgetValue().
-
-
Method Details
-
getValue
-
getValue
Obtain the value of the limit and ensure it is smaller than a given maximum. UsegetValue()to accept any limit.- Parameters:
maximum- a maximum the limit must not exceeed, otherwise aMalformedArgExceptionwill be raised- Throws:
MalformedArgException- of the limit is exceeded, or the argument was malformed in the first place.
-
getValueNoMaximum
-
valueOf
- Throws:
MalformedArgException
-