public class CheckMate extends java.lang.Object implements NotEmptyCheckMate, IntRangeCheckMate, LongRangeCheckMate
| Modifier and Type | Method and Description |
|---|---|
boolean |
allInvalid() |
CheckMate |
and(java.lang.Integer endExclusive)
The end of the range check, exclusive.
|
CheckMate |
and(java.lang.Long endExclusive) |
boolean |
anyInvalid() |
IntRangeCheckMate |
between(java.lang.Integer start)
The start of the range check, inclusive.
|
LongRangeCheckMate |
between(java.lang.Long start) |
static CheckMate |
check() |
CheckMate |
inclusive() |
IntRangeCheckMate |
intValue(java.lang.Comparable<java.lang.Integer> value)
The intValue to compare.
|
LongRangeCheckMate |
longValue(java.lang.Comparable<java.lang.Long> value) |
<T extends java.lang.CharSequence> |
notEmpty(T chars) |
<T extends java.util.Collection<?>> |
notEmpty(T collection) |
<T extends java.util.Map<?,?>> |
notEmpty(T map) |
<T> CheckMate |
notEmpty(T[] array) |
<T> CheckMate |
notNull(T object) |
void |
validate() |
CheckMate |
withException(java.lang.Class<? extends java.lang.RuntimeException> throwableClass) |
CheckMate |
withMessage(java.lang.String message,
java.lang.Object... values) |
public static CheckMate check()
public void validate()
public boolean anyInvalid()
public boolean allInvalid()
public CheckMate withException(java.lang.Class<? extends java.lang.RuntimeException> throwableClass)
public CheckMate withMessage(java.lang.String message, java.lang.Object... values)
public <T> CheckMate notNull(T object)
public <T extends java.util.Collection<?>> CheckMate notEmpty(T collection)
notEmpty in interface NotEmptyCheckMatepublic <T extends java.lang.CharSequence> CheckMate notEmpty(T chars)
notEmpty in interface NotEmptyCheckMatepublic <T> CheckMate notEmpty(T[] array)
notEmpty in interface NotEmptyCheckMatepublic <T extends java.util.Map<?,?>> CheckMate notEmpty(T map)
notEmpty in interface NotEmptyCheckMatepublic IntRangeCheckMate intValue(java.lang.Comparable<java.lang.Integer> value)
intValue in interface IntRangeCheckMatevalue - a Comparable of an Integer.IntRangeCheckMate.public IntRangeCheckMate between(java.lang.Integer start)
between in interface IntRangeCheckMatestart - Integer that represents the start of the range, inclusive.IntRangeCheckMate.public CheckMate and(java.lang.Integer endExclusive)
and in interface IntRangeCheckMateendExclusive - Integer that represents the end of the range, exclusive.CheckMate.public LongRangeCheckMate longValue(java.lang.Comparable<java.lang.Long> value)
longValue in interface LongRangeCheckMatepublic LongRangeCheckMate between(java.lang.Long start)
between in interface LongRangeCheckMatepublic CheckMate and(java.lang.Long endExclusive)
and in interface LongRangeCheckMatepublic CheckMate inclusive()
Copyright © 2018. All rights reserved.