@Immutable public final class JCValueEnforcer extends Object
Modifier and Type | Method and Description |
---|---|
static void |
isArrayOfsLen(boolean[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(byte[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(char[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(double[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(float[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(int[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(long[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(Object[] aArray,
int nOfs,
int nLen) |
static void |
isArrayOfsLen(short[] aArray,
int nOfs,
int nLen) |
static BigDecimal |
isBetweenExclusive(BigDecimal aValue,
String sName,
BigDecimal aLowerBoundExclusive,
BigDecimal aUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static BigDecimal |
isBetweenExclusive(BigDecimal aValue,
Supplier<? extends String> aName,
BigDecimal aLowerBoundExclusive,
BigDecimal aUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static BigInteger |
isBetweenExclusive(BigInteger aValue,
String sName,
BigInteger aLowerBoundExclusive,
BigInteger aUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static BigInteger |
isBetweenExclusive(BigInteger aValue,
Supplier<? extends String> aName,
BigInteger aLowerBoundExclusive,
BigInteger aUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static double |
isBetweenExclusive(double dValue,
String sName,
double dLowerBoundExclusive,
double dUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static double |
isBetweenExclusive(double dValue,
Supplier<? extends String> aName,
double dLowerBoundExclusive,
double dUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static float |
isBetweenExclusive(float fValue,
String sName,
float fLowerBoundExclusive,
float fUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static float |
isBetweenExclusive(float fValue,
Supplier<? extends String> aName,
float fLowerBoundExclusive,
float fUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static int |
isBetweenExclusive(int nValue,
String sName,
int nLowerBoundExclusive,
int nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static int |
isBetweenExclusive(int nValue,
Supplier<? extends String> aName,
int nLowerBoundExclusive,
int nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static long |
isBetweenExclusive(long nValue,
String sName,
long nLowerBoundExclusive,
long nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static long |
isBetweenExclusive(long nValue,
Supplier<? extends String> aName,
long nLowerBoundExclusive,
long nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static short |
isBetweenExclusive(short nValue,
String sName,
short nLowerBoundExclusive,
short nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static short |
isBetweenExclusive(short nValue,
Supplier<? extends String> aName,
short nLowerBoundExclusive,
short nUpperBoundExclusive)
Check if
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive |
static BigDecimal |
isBetweenInclusive(BigDecimal aValue,
String sName,
BigDecimal aLowerBoundInclusive,
BigDecimal aUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static BigDecimal |
isBetweenInclusive(BigDecimal aValue,
Supplier<? extends String> aName,
BigDecimal aLowerBoundInclusive,
BigDecimal aUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static BigInteger |
isBetweenInclusive(BigInteger aValue,
String sName,
BigInteger aLowerBoundInclusive,
BigInteger aUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static BigInteger |
isBetweenInclusive(BigInteger aValue,
Supplier<? extends String> aName,
BigInteger aLowerBoundInclusive,
BigInteger aUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static double |
isBetweenInclusive(double dValue,
String sName,
double dLowerBoundInclusive,
double dUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static double |
isBetweenInclusive(double dValue,
Supplier<? extends String> aName,
double dLowerBoundInclusive,
double dUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static float |
isBetweenInclusive(float fValue,
String sName,
float fLowerBoundInclusive,
float fUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static float |
isBetweenInclusive(float fValue,
Supplier<? extends String> aName,
float fLowerBoundInclusive,
float fUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static int |
isBetweenInclusive(int nValue,
String sName,
int nLowerBoundInclusive,
int nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static int |
isBetweenInclusive(int nValue,
Supplier<? extends String> aName,
int nLowerBoundInclusive,
int nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static long |
isBetweenInclusive(long nValue,
String sName,
long nLowerBoundInclusive,
long nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static long |
isBetweenInclusive(long nValue,
Supplier<? extends String> aName,
long nLowerBoundInclusive,
long nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static short |
isBetweenInclusive(short nValue,
String sName,
short nLowerBoundInclusive,
short nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static short |
isBetweenInclusive(short nValue,
Supplier<? extends String> aName,
short nLowerBoundInclusive,
short nUpperBoundInclusive)
Check if
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive |
static boolean |
isEnabled() |
static void |
isEqual(double dValue,
double dExpectedValue,
String sName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isEqual(double dValue,
double dExpectedValue,
Supplier<? extends String> aName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isEqual(int nValue,
int nExpectedValue,
String sName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isEqual(int nValue,
int nExpectedValue,
Supplier<? extends String> aName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isEqual(long nValue,
long nExpectedValue,
String sName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isEqual(long nValue,
long nExpectedValue,
Supplier<? extends String> aName)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static <T> T |
isEqual(T aValue,
T aExpectedValue,
String sName)
Check that the passed value is the same as the provided expected value
using
equals to check comparison. |
static <T> T |
isEqual(T aValue,
T aExpectedValue,
Supplier<? extends String> aName)
Check that the passed value is the same as the provided expected value
using
equals to check comparison. |
static void |
isFalse(boolean bValue,
String sMsg)
Check that the passed value is
false . |
static void |
isFalse(boolean bValue,
Supplier<? extends String> aMsg)
Check that the passed value is
false . |
static BigDecimal |
isGE0(BigDecimal aValue,
String sName) |
static BigDecimal |
isGE0(BigDecimal aValue,
Supplier<? extends String> aName) |
static BigInteger |
isGE0(BigInteger aValue,
String sName) |
static BigInteger |
isGE0(BigInteger aValue,
Supplier<? extends String> aName) |
static double |
isGE0(double dValue,
String sName) |
static double |
isGE0(double dValue,
Supplier<? extends String> aName) |
static float |
isGE0(float fValue,
String sName) |
static float |
isGE0(float fValue,
Supplier<? extends String> aName) |
static int |
isGE0(int nValue,
String sName) |
static int |
isGE0(int nValue,
Supplier<? extends String> aName) |
static long |
isGE0(long nValue,
String sName) |
static long |
isGE0(long nValue,
Supplier<? extends String> aName) |
static short |
isGE0(short nValue,
String sName) |
static short |
isGE0(short nValue,
Supplier<? extends String> aName) |
static BigDecimal |
isGT0(BigDecimal aValue,
String sName) |
static BigDecimal |
isGT0(BigDecimal aValue,
Supplier<? extends String> aName) |
static BigInteger |
isGT0(BigInteger aValue,
String sName) |
static BigInteger |
isGT0(BigInteger aValue,
Supplier<? extends String> aName) |
static double |
isGT0(double dValue,
String sName) |
static double |
isGT0(double dValue,
Supplier<? extends String> aName) |
static float |
isGT0(float fValue,
String sName) |
static float |
isGT0(float fValue,
Supplier<? extends String> aName) |
static int |
isGT0(int nValue,
String sName) |
static int |
isGT0(int nValue,
Supplier<? extends String> aName) |
static long |
isGT0(long nValue,
String sName) |
static long |
isGT0(long nValue,
Supplier<? extends String> aName) |
static short |
isGT0(short nValue,
String sName) |
static short |
isGT0(short nValue,
Supplier<? extends String> aName) |
static <T> void |
isInstanceOf(T aValue,
Class<? extends T> aClass,
String sMsg)
Check that the passed value is an instance of the passed class.
|
static <T> void |
isInstanceOf(T aValue,
Class<? extends T> aClass,
Supplier<? extends String> aMsg)
Check that the passed value is an instance of the passed class.
|
static BigDecimal |
isLE0(BigDecimal aValue,
String sName) |
static BigDecimal |
isLE0(BigDecimal aValue,
Supplier<? extends String> aName) |
static BigInteger |
isLE0(BigInteger aValue,
String sName) |
static BigInteger |
isLE0(BigInteger aValue,
Supplier<? extends String> aName) |
static double |
isLE0(double dValue,
String sName) |
static double |
isLE0(double dValue,
Supplier<? extends String> aName) |
static float |
isLE0(float fValue,
String sName) |
static float |
isLE0(float fValue,
Supplier<? extends String> aName) |
static int |
isLE0(int nValue,
String sName) |
static int |
isLE0(int nValue,
Supplier<? extends String> aName) |
static long |
isLE0(long nValue,
String sName) |
static long |
isLE0(long nValue,
Supplier<? extends String> aName) |
static short |
isLE0(short nValue,
String sName) |
static short |
isLE0(short nValue,
Supplier<? extends String> aName) |
static BigDecimal |
isLT0(BigDecimal aValue,
String sName) |
static BigDecimal |
isLT0(BigDecimal aValue,
Supplier<? extends String> aName) |
static BigInteger |
isLT0(BigInteger aValue,
String sName) |
static BigInteger |
isLT0(BigInteger aValue,
Supplier<? extends String> aName) |
static double |
isLT0(double dValue,
String sName) |
static double |
isLT0(double dValue,
Supplier<? extends String> aName) |
static float |
isLT0(float fValue,
String sName) |
static float |
isLT0(float fValue,
Supplier<? extends String> aName) |
static int |
isLT0(int nValue,
String sName) |
static int |
isLT0(int nValue,
Supplier<? extends String> aName) |
static long |
isLT0(long nValue,
String sName) |
static long |
isLT0(long nValue,
Supplier<? extends String> aName) |
static short |
isLT0(short nValue,
String sName) |
static short |
isLT0(short nValue,
Supplier<? extends String> aName) |
static void |
isNull(Object aValue,
String sName)
Check that the passed value is
null . |
static void |
isNull(Object aValue,
Supplier<? extends String> aName)
Check that the passed value is
null . |
static <T> T |
isSame(T aValue,
String sName,
T aExpectedValue)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static <T> T |
isSame(T aValue,
Supplier<? extends String> aName,
T aExpectedValue)
Check that the passed value is the same as the provided expected value
using
== to check comparison. |
static void |
isTrue(boolean bValue,
String sMsg)
Check that the passed value is
true . |
static void |
isTrue(boolean bValue,
Supplier<? extends String> aMsg)
Check that the passed value is
true . |
static <T> T[] |
noNullValue(T[] aValue,
String sName)
Check that the passed Array contains no
null value. |
static <T> T[] |
noNullValue(T[] aValue,
Supplier<? extends String> aName)
Check that the passed Array contains no
null value. |
static <T extends Iterable<?>> |
noNullValue(T aValue,
String sName)
Check that the passed iterable contains no
null value. |
static <T extends Map<?,?>> |
noNullValue(T aValue,
String sName)
Check that the passed map is neither
null nor empty and that
no null key or value is contained. |
static <T extends Iterable<?>> |
noNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed iterable contains no
null value. |
static <T extends Map<?,?>> |
noNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed map is neither
null nor empty and that
no null key or value is contained. |
static boolean[] |
notEmpty(boolean[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static boolean[] |
notEmpty(boolean[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static byte[] |
notEmpty(byte[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static byte[] |
notEmpty(byte[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static char[] |
notEmpty(char[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static char[] |
notEmpty(char[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static double[] |
notEmpty(double[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static double[] |
notEmpty(double[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static float[] |
notEmpty(float[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static float[] |
notEmpty(float[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static int[] |
notEmpty(int[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static int[] |
notEmpty(int[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static long[] |
notEmpty(long[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static long[] |
notEmpty(long[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static short[] |
notEmpty(short[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static short[] |
notEmpty(short[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static <T> T[] |
notEmpty(T[] aValue,
String sName)
Check that the passed Array is neither
null nor empty. |
static <T> T[] |
notEmpty(T[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty. |
static <T extends CharSequence> |
notEmpty(T aValue,
String sName)
Check that the passed String is neither
null nor empty. |
static <T extends Iterable<?>> |
notEmpty(T aValue,
String sName)
Check that the passed
Iterable is neither null nor
empty. |
static <T extends Collection<?>> |
notEmpty(T aValue,
String sName)
Check that the passed
Collection is neither null nor
empty. |
static <T extends Map<?,?>> |
notEmpty(T aValue,
String sName)
Check that the passed Collection is neither
null nor empty. |
static <T extends CharSequence> |
notEmpty(T aValue,
Supplier<? extends String> aName)
Check that the passed String is neither
null nor empty. |
static <T extends Iterable<?>> |
notEmpty(T aValue,
Supplier<? extends String> aName)
Check that the passed
Iterable is neither null nor
empty. |
static <T extends Collection<?>> |
notEmpty(T aValue,
Supplier<? extends String> aName)
Check that the passed
Collection is neither null nor
empty. |
static <T extends Map<?,?>> |
notEmpty(T aValue,
Supplier<? extends String> aName)
Check that the passed Collection is neither
null nor empty. |
static <T> T[] |
notEmptyNoNullValue(T[] aValue,
String sName)
Check that the passed Array is neither
null nor empty and that
no null value is contained. |
static <T> T[] |
notEmptyNoNullValue(T[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is neither
null nor empty and that
no null value is contained. |
static <T extends Iterable<?>> |
notEmptyNoNullValue(T aValue,
String sName)
Check that the passed collection is neither
null nor empty and
that no null value is contained. |
static <T extends Map<?,?>> |
notEmptyNoNullValue(T aValue,
String sName)
Check that the passed map is neither
null nor empty and that
no null value is contained. |
static <T extends Iterable<?>> |
notEmptyNoNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed collection is neither
null nor empty and
that no null value is contained. |
static <T extends Map<?,?>> |
notEmptyNoNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed map is neither
null nor empty and that
no null value is contained. |
static <T> T |
notNull(T aValue,
String sName)
Check that the passed value is not
null . |
static <T> T |
notNull(T aValue,
Supplier<? extends String> aName)
Check that the passed value is not
null . |
static <T> T |
notNullAndEquals(T aValue,
String sName,
T aExpectedValue)
Check that the passed value is not
null and equal to the
provided expected value. |
static <T> T |
notNullAndEquals(T aValue,
Supplier<? extends String> aName,
T aExpectedValue)
Check that the passed value is not
null and equal to the
provided expected value. |
static <T> T[] |
notNullNoNullValue(T[] aValue,
String sName)
Check that the passed Array is not
null and that no
null value is contained. |
static <T> T[] |
notNullNoNullValue(T[] aValue,
Supplier<? extends String> aName)
Check that the passed Array is not
null and that no
null value is contained. |
static <T extends Iterable<?>> |
notNullNoNullValue(T aValue,
String sName)
Check that the passed collection is not
null and that no
null value is contained. |
static <T extends Map<?,?>> |
notNullNoNullValue(T aValue,
String sName)
Check that the passed map is not
null and that no
null value is contained. |
static <T extends Iterable<?>> |
notNullNoNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed collection is not
null and that no
null value is contained. |
static <T extends Map<?,?>> |
notNullNoNullValue(T aValue,
Supplier<? extends String> aName)
Check that the passed map is not
null and that no
null value is contained. |
static <T> T |
notNullNotEquals(T aValue,
String sName,
T aUnexpectedValue)
Check that the passed value is not
null and not equal to the
provided value. |
static <T> T |
notNullNotEquals(T aValue,
Supplier<? extends String> aName,
T aUnexpectedValue)
Check that the passed value is not
null and not equal to the
provided value. |
static void |
setEnabled(boolean bEnabled)
Enable or disable the checks.
|
public static boolean isEnabled()
true
if the assertions are enabled, false
otherwise. By default the checks are enabled.public static void setEnabled(boolean bEnabled)
bEnabled
- true
to enable it, false
otherwise.public static void isTrue(boolean bValue, String sMsg)
true
.bValue
- The value to check.sMsg
- The message to be emitted in case the value is false
IllegalArgumentException
- if the passed value is not null
.public static void isTrue(boolean bValue, @Nonnull Supplier<? extends String> aMsg)
true
.bValue
- The value to check.aMsg
- The message to be emitted in case the value is false
IllegalArgumentException
- if the passed value is not null
.public static void isFalse(boolean bValue, String sMsg)
false
.bValue
- The value to check.sMsg
- The message to be emitted in case the value is true
IllegalArgumentException
- if the passed value is not null
.public static void isFalse(boolean bValue, @Nonnull Supplier<? extends String> aMsg)
false
.bValue
- The value to check.aMsg
- The message to be emitted in case the value is true
IllegalArgumentException
- if the passed value is not null
.public static <T> void isInstanceOf(@Nullable T aValue, @Nonnull Class<? extends T> aClass, String sMsg)
T
- Type to check.aValue
- The value to check. May be null
.aClass
- The class of which the passed value must be an instance. May not be
null
.sMsg
- The message to be emitted in case the value is false
IllegalArgumentException
- if the passed value is not null
.public static <T> void isInstanceOf(@Nullable T aValue, @Nonnull Class<? extends T> aClass, @Nonnull Supplier<? extends String> aMsg)
T
- Type to check.aValue
- The value to check. May be null
.aClass
- The class of which the passed value must be an instance. May not be
null
.aMsg
- The message to be emitted in case the value is false
IllegalArgumentException
- if the passed value is not null
.public static <T> T notNull(T aValue, String sName)
null
.T
- Type to be checked and returnedaValue
- The value to check.sName
- The name of the value (e.g. the parameter name)NullPointerException
- if the passed value is null
.public static <T> T notNull(T aValue, @Nonnull Supplier<? extends String> aName)
null
.T
- Type to be checked and returnedaValue
- The value to check.aName
- The name of the value (e.g. the parameter name)NullPointerException
- if the passed value is null
.public static void isNull(Object aValue, String sName)
null
.aValue
- The value to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isNull(Object aValue, @Nonnull Supplier<? extends String> aName)
null
.aValue
- The value to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static <T extends CharSequence> T notEmpty(T aValue, String sName)
null
nor empty.T
- Type to be checked and returnedaValue
- The String to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends CharSequence> T notEmpty(T aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.T
- Type to be checked and returnedaValue
- The String to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T> T[] notEmpty(T[] aValue, String sName)
null
nor empty.T
- Type to be checked and returnedaValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T> T[] notEmpty(T[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.T
- Type to be checked and returnedaValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static boolean[] notEmpty(boolean[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static boolean[] notEmpty(boolean[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static byte[] notEmpty(byte[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static byte[] notEmpty(byte[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static char[] notEmpty(char[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static char[] notEmpty(char[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static double[] notEmpty(double[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static double[] notEmpty(double[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static float[] notEmpty(float[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static float[] notEmpty(float[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static int[] notEmpty(int[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static int[] notEmpty(int[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static long[] notEmpty(long[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static long[] notEmpty(long[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static short[] notEmpty(short[] aValue, String sName)
null
nor empty.aValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static short[] notEmpty(short[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.aValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Collection<?>> T notEmpty(T aValue, String sName)
Collection
is neither null
nor
empty.T
- Type to be checked and returnedaValue
- The String to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Collection<?>> T notEmpty(T aValue, @Nonnull Supplier<? extends String> aName)
Collection
is neither null
nor
empty.T
- Type to be checked and returnedaValue
- The String to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Iterable<?>> T notEmpty(T aValue, String sName)
Iterable
is neither null
nor
empty.T
- Type to be checked and returnedaValue
- The String to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Iterable<?>> T notEmpty(T aValue, @Nonnull Supplier<? extends String> aName)
Iterable
is neither null
nor
empty.T
- Type to be checked and returnedaValue
- The String to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Map<?,?>> T notEmpty(T aValue, String sName)
null
nor empty.T
- Type to be checked and returnedaValue
- The String to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is emptypublic static <T extends Map<?,?>> T notEmpty(T aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty.T
- Type to be checked and returnedaValue
- The String to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty@Nullable public static <T> T[] noNullValue(T[] aValue, String sName)
null
value. But the
whole array can be null
or empty.T
- Type to be checked and returnedaValue
- The Array to check. May be null
.sName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
value is
contained@Nullable public static <T> T[] noNullValue(T[] aValue, @Nonnull Supplier<? extends String> aName)
null
value. But the
whole array can be null
or empty.T
- Type to be checked and returnedaValue
- The Array to check. May be null
.aName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
value is
contained@Nullable public static <T extends Iterable<?>> T noNullValue(T aValue, String sName)
null
value. But the
whole iterable can be null
or empty.T
- Type to be checked and returnedaValue
- The collection to check. May be null
.sName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
value is
contained@Nullable public static <T extends Iterable<?>> T noNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
value. But the
whole iterable can be null
or empty.T
- Type to be checked and returnedaValue
- The collection to check. May be null
.aName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
value is
contained@Nullable public static <T extends Map<?,?>> T noNullValue(T aValue, String sName)
null
nor empty and that
no null
key or value is contained.T
- Type to be checked and returnedaValue
- The map to check. May be null
.sName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
key or
null
value is contained@Nullable public static <T extends Map<?,?>> T noNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty and that
no null
key or value is contained.T
- Type to be checked and returnedaValue
- The map to check. May be null
.aName
- The name of the value (e.g. the parameter name)null
.IllegalArgumentException
- if the passed value is not empty and a null
key or
null
value is containedpublic static <T> T[] notNullNoNullValue(T[] aValue, String sName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null or a null
value is
containedpublic static <T> T[] notNullNoNullValue(T[] aValue, @Nonnull Supplier<? extends String> aName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null or a null
value is
containedpublic static <T extends Iterable<?>> T notNullNoNullValue(T aValue, String sName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The collection to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null
or a null
value is containedpublic static <T extends Iterable<?>> T notNullNoNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The collection to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null
or a null
value is containedpublic static <T extends Map<?,?>> T notNullNoNullValue(T aValue, String sName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The map to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null
or a null
value is containedpublic static <T extends Map<?,?>> T notNullNoNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
and that no
null
value is contained.T
- Type to be checked and returnedaValue
- The map to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is null
or a null
value is containedpublic static <T> T[] notEmptyNoNullValue(T[] aValue, String sName)
null
nor empty and that
no null
value is contained.T
- Type to be checked and returnedaValue
- The Array to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T> T[] notEmptyNoNullValue(T[] aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty and that
no null
value is contained.T
- Type to be checked and returnedaValue
- The Array to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T extends Iterable<?>> T notEmptyNoNullValue(T aValue, String sName)
null
nor empty and
that no null
value is contained.T
- Type to be checked and returnedaValue
- The collection to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T extends Iterable<?>> T notEmptyNoNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty and
that no null
value is contained.T
- Type to be checked and returnedaValue
- The collection to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T extends Map<?,?>> T notEmptyNoNullValue(T aValue, String sName)
null
nor empty and that
no null
value is contained.T
- Type to be checked and returnedaValue
- The map to check.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T extends Map<?,?>> T notEmptyNoNullValue(T aValue, @Nonnull Supplier<? extends String> aName)
null
nor empty and that
no null
value is contained.T
- Type to be checked and returnedaValue
- The map to check.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is empty or a null
value is
containedpublic static <T> T notNullNotEquals(T aValue, String sName, @Nonnull T aUnexpectedValue)
null
and not equal to the
provided value.T
- Type to be checked and returnedaValue
- The value to check. May not be null
.sName
- The name of the value (e.g. the parameter name)aUnexpectedValue
- The value that may not be equal to aValue. May not be
null
.public static <T> T notNullNotEquals(T aValue, @Nonnull Supplier<? extends String> aName, @Nonnull T aUnexpectedValue)
null
and not equal to the
provided value.T
- Type to be checked and returnedaValue
- The value to check. May not be null
.aName
- The name of the value (e.g. the parameter name)aUnexpectedValue
- The value that may not be equal to aValue. May not be
null
.public static <T> T notNullAndEquals(T aValue, String sName, @Nonnull T aExpectedValue)
null
and equal to the
provided expected value.T
- Type to be checked and returnedaValue
- The value to check.sName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May not be null
.IllegalArgumentException
- if the passed value is not null
.public static <T> T notNullAndEquals(T aValue, @Nonnull Supplier<? extends String> aName, @Nonnull T aExpectedValue)
null
and equal to the
provided expected value.T
- Type to be checked and returnedaValue
- The value to check.aName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May not be null
.IllegalArgumentException
- if the passed value is not null
.public static <T> T isSame(T aValue, String sName, @Nullable T aExpectedValue)
==
to check comparison.T
- Type to be checked and returnedaValue
- The value to check.sName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May be null
.null
if the expected value
is null.IllegalArgumentException
- if the passed value is not null
.public static <T> T isSame(T aValue, @Nonnull Supplier<? extends String> aName, @Nullable T aExpectedValue)
==
to check comparison.T
- Type to be checked and returnedaValue
- The value to check.aName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May be null
.null
if the expected value
is null.IllegalArgumentException
- if the passed value is not null
.public static <T> T isEqual(T aValue, @Nullable T aExpectedValue, String sName)
equals
to check comparison.T
- Type to be checked and returnedaValue
- The value to check.sName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May be null
.null
if the expected value
is null.IllegalArgumentException
- if the passed value is not null
.public static <T> T isEqual(T aValue, @Nullable T aExpectedValue, @Nonnull Supplier<? extends String> aName)
equals
to check comparison.T
- Type to be checked and returnedaValue
- The value to check.aName
- The name of the value (e.g. the parameter name)aExpectedValue
- The expected value. May be null
.null
if the expected value
is null.IllegalArgumentException
- if the passed value is not null
.public static void isEqual(int nValue, int nExpectedValue, String sName)
==
to check comparison.nValue
- The First value.nExpectedValue
- The expected value.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isEqual(int nValue, int nExpectedValue, @Nonnull Supplier<? extends String> aName)
==
to check comparison.nValue
- The First value.nExpectedValue
- The expected value.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isEqual(long nValue, long nExpectedValue, String sName)
==
to check comparison.nValue
- The First value.nExpectedValue
- The expected value.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isEqual(long nValue, long nExpectedValue, @Nonnull Supplier<? extends String> aName)
==
to check comparison.nValue
- The First value.nExpectedValue
- The expected value.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isEqual(double dValue, double dExpectedValue, String sName)
==
to check comparison.dValue
- The First value.dExpectedValue
- The expected value.sName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static void isEqual(double dValue, double dExpectedValue, @Nonnull Supplier<? extends String> aName)
==
to check comparison.dValue
- The First value.dExpectedValue
- The expected value.aName
- The name of the value (e.g. the parameter name)IllegalArgumentException
- if the passed value is not null
.public static int isGE0(int nValue, String sName)
public static long isGE0(long nValue, String sName)
public static short isGE0(short nValue, String sName)
public static double isGE0(double dValue, String sName)
public static float isGE0(float fValue, String sName)
public static BigDecimal isGE0(BigDecimal aValue, String sName)
public static BigDecimal isGE0(BigDecimal aValue, @Nonnull Supplier<? extends String> aName)
public static BigInteger isGE0(BigInteger aValue, String sName)
public static BigInteger isGE0(BigInteger aValue, @Nonnull Supplier<? extends String> aName)
public static int isGT0(int nValue, String sName)
public static long isGT0(long nValue, String sName)
public static short isGT0(short nValue, String sName)
public static double isGT0(double dValue, String sName)
public static float isGT0(float fValue, String sName)
public static BigDecimal isGT0(BigDecimal aValue, String sName)
public static BigDecimal isGT0(BigDecimal aValue, @Nonnull Supplier<? extends String> aName)
public static BigInteger isGT0(BigInteger aValue, String sName)
public static BigInteger isGT0(BigInteger aValue, @Nonnull Supplier<? extends String> aName)
public static int isLE0(int nValue, String sName)
public static long isLE0(long nValue, String sName)
public static short isLE0(short nValue, String sName)
public static double isLE0(double dValue, String sName)
public static float isLE0(float fValue, String sName)
public static BigDecimal isLE0(BigDecimal aValue, String sName)
public static BigDecimal isLE0(BigDecimal aValue, @Nonnull Supplier<? extends String> aName)
public static BigInteger isLE0(BigInteger aValue, String sName)
public static BigInteger isLE0(BigInteger aValue, @Nonnull Supplier<? extends String> aName)
public static int isLT0(int nValue, String sName)
public static long isLT0(long nValue, String sName)
public static short isLT0(short nValue, String sName)
public static double isLT0(double dValue, String sName)
public static float isLT0(float fValue, String sName)
public static BigDecimal isLT0(BigDecimal aValue, String sName)
public static BigDecimal isLT0(BigDecimal aValue, @Nonnull Supplier<? extends String> aName)
public static BigInteger isLT0(BigInteger aValue, String sName)
public static BigInteger isLT0(BigInteger aValue, @Nonnull Supplier<? extends String> aName)
public static int isBetweenInclusive(int nValue, String sName, int nLowerBoundInclusive, int nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static int isBetweenInclusive(int nValue, @Nonnull Supplier<? extends String> aName, int nLowerBoundInclusive, int nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static long isBetweenInclusive(long nValue, String sName, long nLowerBoundInclusive, long nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static long isBetweenInclusive(long nValue, @Nonnull Supplier<? extends String> aName, long nLowerBoundInclusive, long nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static short isBetweenInclusive(short nValue, String sName, short nLowerBoundInclusive, short nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static short isBetweenInclusive(short nValue, @Nonnull Supplier<? extends String> aName, short nLowerBoundInclusive, short nUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundInclusive
- Lower boundnUpperBoundInclusive
- Upper boundpublic static double isBetweenInclusive(double dValue, String sName, double dLowerBoundInclusive, double dUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
dValue
- ValuesName
- NamedLowerBoundInclusive
- Lower bounddUpperBoundInclusive
- Upper boundpublic static double isBetweenInclusive(double dValue, @Nonnull Supplier<? extends String> aName, double dLowerBoundInclusive, double dUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
dValue
- ValueaName
- NamedLowerBoundInclusive
- Lower bounddUpperBoundInclusive
- Upper boundpublic static float isBetweenInclusive(float fValue, String sName, float fLowerBoundInclusive, float fUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
fValue
- ValuesName
- NamefLowerBoundInclusive
- Lower boundfUpperBoundInclusive
- Upper boundpublic static float isBetweenInclusive(float fValue, @Nonnull Supplier<? extends String> aName, float fLowerBoundInclusive, float fUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
fValue
- ValueaName
- NamefLowerBoundInclusive
- Lower boundfUpperBoundInclusive
- Upper boundpublic static BigDecimal isBetweenInclusive(BigDecimal aValue, String sName, @Nonnull BigDecimal aLowerBoundInclusive, @Nonnull BigDecimal aUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
aValue
- ValuesName
- NameaLowerBoundInclusive
- Lower boundaUpperBoundInclusive
- Upper boundpublic static BigDecimal isBetweenInclusive(BigDecimal aValue, @Nonnull Supplier<? extends String> aName, @Nonnull BigDecimal aLowerBoundInclusive, @Nonnull BigDecimal aUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
aValue
- ValueaName
- NameaLowerBoundInclusive
- Lower boundaUpperBoundInclusive
- Upper boundpublic static BigInteger isBetweenInclusive(BigInteger aValue, String sName, @Nonnull BigInteger aLowerBoundInclusive, @Nonnull BigInteger aUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
aValue
- ValuesName
- NameaLowerBoundInclusive
- Lower boundaUpperBoundInclusive
- Upper boundpublic static BigInteger isBetweenInclusive(BigInteger aValue, @Nonnull Supplier<? extends String> aName, @Nonnull BigInteger aLowerBoundInclusive, @Nonnull BigInteger aUpperBoundInclusive)
nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive
aValue
- ValueaName
- NameaLowerBoundInclusive
- Lower boundaUpperBoundInclusive
- Upper boundpublic static int isBetweenExclusive(int nValue, String sName, int nLowerBoundExclusive, int nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static int isBetweenExclusive(int nValue, @Nonnull Supplier<? extends String> aName, int nLowerBoundExclusive, int nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static long isBetweenExclusive(long nValue, String sName, long nLowerBoundExclusive, long nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static long isBetweenExclusive(long nValue, @Nonnull Supplier<? extends String> aName, long nLowerBoundExclusive, long nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static short isBetweenExclusive(short nValue, String sName, short nLowerBoundExclusive, short nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValuesName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static short isBetweenExclusive(short nValue, @Nonnull Supplier<? extends String> aName, short nLowerBoundExclusive, short nUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
nValue
- ValueaName
- NamenLowerBoundExclusive
- Lower boundnUpperBoundExclusive
- Upper boundpublic static double isBetweenExclusive(double dValue, String sName, double dLowerBoundExclusive, double dUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
dValue
- ValuesName
- NamedLowerBoundExclusive
- Lower bounddUpperBoundExclusive
- Upper boundpublic static double isBetweenExclusive(double dValue, @Nonnull Supplier<? extends String> aName, double dLowerBoundExclusive, double dUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
dValue
- ValueaName
- NamedLowerBoundExclusive
- Lower bounddUpperBoundExclusive
- Upper boundpublic static float isBetweenExclusive(float fValue, String sName, float fLowerBoundExclusive, float fUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
fValue
- ValuesName
- NamefLowerBoundExclusive
- Lower boundfUpperBoundExclusive
- Upper boundpublic static float isBetweenExclusive(float fValue, @Nonnull Supplier<? extends String> aName, float fLowerBoundExclusive, float fUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
fValue
- ValueaName
- NamefLowerBoundExclusive
- Lower boundfUpperBoundExclusive
- Upper boundpublic static BigDecimal isBetweenExclusive(BigDecimal aValue, String sName, @Nonnull BigDecimal aLowerBoundExclusive, @Nonnull BigDecimal aUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
aValue
- ValuesName
- NameaLowerBoundExclusive
- Lower boundaUpperBoundExclusive
- Upper boundpublic static BigDecimal isBetweenExclusive(BigDecimal aValue, @Nonnull Supplier<? extends String> aName, @Nonnull BigDecimal aLowerBoundExclusive, @Nonnull BigDecimal aUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
aValue
- ValueaName
- NameaLowerBoundExclusive
- Lower boundaUpperBoundExclusive
- Upper boundpublic static BigInteger isBetweenExclusive(BigInteger aValue, String sName, @Nonnull BigInteger aLowerBoundExclusive, @Nonnull BigInteger aUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
aValue
- ValuesName
- NameaLowerBoundExclusive
- Lower boundaUpperBoundExclusive
- Upper boundpublic static BigInteger isBetweenExclusive(BigInteger aValue, @Nonnull Supplier<? extends String> aName, @Nonnull BigInteger aLowerBoundExclusive, @Nonnull BigInteger aUpperBoundExclusive)
nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive
aValue
- ValueaName
- NameaLowerBoundExclusive
- Lower boundaUpperBoundExclusive
- Upper boundpublic static void isArrayOfsLen(Object[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(boolean[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(byte[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(char[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(double[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(float[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(int[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(long[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
public static void isArrayOfsLen(short[] aArray, @Nonnegative int nOfs, @Nonnegative int nLen)
Copyright © 2013–2019 Philip Helger. All rights reserved.