org.apache.commons.lang3.Validate
This class assists in validating arguments. The validation methods are based along the following principles:
- An invalid
null
argument causes aNullPointerException
. - A non-
null
argument causes anIllegalArgumentException
. - An invalid index into an array/collection/map/string causes an
IndexOutOfBoundsException
———————————————————————————
No comments:
Post a Comment