Package ubic.gemma.rest.util.args
Class LimitArg
Argument used to represent a limit.
-
Field Summary
Fields -
Method Summary
Methods inherited from class ubic.gemma.rest.util.args.AbstractArg
toString
-
Field Details
-
MAXIMUM
public static int MAXIMUMThis is the default maximum used forgetValue().
-
-
Method Details
-
getValue
Obtain the value of the limit ensuring that it is smaller thanMAXIMUM -
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
Obtain the value of the limit, explicitly disregarding the maximum defined byMAXIMUM. -
valueOf
- Throws:
MalformedArgException
-