C - The type of the concrete check class. This parameter is necessary
for this base class to define methods that return the check object
itself (with the correct static type), which is necessary for the
fluent interface of all checks.@GwtCompatible public class PrimitiveBaseCheck<C extends PrimitiveBaseCheck<C>> extends BaseCheck<C>
BaseCheck.ObjectBaseCheck| Constructor and Description |
|---|
PrimitiveBaseCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected C |
check(boolean condition,
MessageType msgType,
Object... msgArgs)
A helper method that allows subclasses to perform simple checks
conveniently with a one-liner.
|
protected C |
disable()
Disables all checks that are called on this check object.
|
checkConversion, me, named, notprotected final C disable()
ObjectBaseCheck.intPropertyCheck(int, String)protected final C check(boolean condition, MessageType msgType, Object... msgArgs)
disabled, it checks if the given
condition is true or false respectively,
depending on the inverted flag. If the check
fails, an IllegalArgumentException is thrown, with a message
formatted using the format belonging to the given message type and the
given message arguments.
inverted flag.
condition - The check conditionmsgType - The message type to be used for the exception message thrown
if the check failsmsgArgs - The arguments for the exception messageCopyright © 2012–2017 Michael Faes. All rights reserved.