Example usage for Java android.support.v4.util Preconditions fields, constructors, methods, implement or subclass
The text is from its open source code.
void | checkArgument(boolean expression) |
void | checkArgument(boolean expression, final Object errorMessage) Ensures that an expression checking an argument is true. |
int | checkArgumentNonnegative(final int value, final String errorMessage) Ensures that that the argument numeric value is non-negative. |
long | checkArgumentNonnegative(final long value, final String errorMessage) Ensures that that the argument numeric value is non-negative. |
T | checkNotNull(final T reference, final Object errorMessage) Ensures that an object reference passed as a parameter to the calling method is not null. |
T | checkNotNull(final T reference) Ensures that an object reference passed as a parameter to the calling method is not null. |
void | checkState(final boolean expression, String message) Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. |