public final class Check extends Object
Example:
Check.superiorStrict(value, 0); final Object object = null; Check.notNull(object);
This class is Thread-Safe.
Modifier and Type | Method and Description |
---|---|
static void |
different(int a,
int b)
Check if
a is different to b . |
static void |
equality(int a,
int b)
Check if
a is equal to b . |
static void |
inferiorOrEqual(double a,
double b)
Check if
a is inferior to b . |
static void |
inferiorOrEqual(int a,
int b)
Check if
a is inferior to b . |
static void |
inferiorStrict(double a,
double b)
Check if
a is strictly inferior to b . |
static void |
inferiorStrict(int a,
int b)
Check if
a is strictly inferior to b . |
static void |
notNull(Object object)
Check if the object is not
null . |
static void |
superiorOrEqual(double a,
double b)
Check if
a is superior to b . |
static void |
superiorOrEqual(int a,
int b)
Check if
a is superior to b . |
static void |
superiorStrict(double a,
double b)
Check if
a is strictly superior to b . |
static void |
superiorStrict(int a,
int b)
Check if
a is strictly superior to b . |
public static void superiorOrEqual(int a, int b)
a
is superior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void superiorOrEqual(double a, double b)
a
is superior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void superiorStrict(int a, int b)
a
is strictly superior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void superiorStrict(double a, double b)
a
is strictly superior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void inferiorOrEqual(int a, int b)
a
is inferior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void inferiorOrEqual(double a, double b)
a
is inferior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void inferiorStrict(int a, int b)
a
is strictly inferior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void inferiorStrict(double a, double b)
a
is strictly inferior to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void different(int a, int b)
a
is different to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void equality(int a, int b)
a
is equal to b
.a
- The parameter to test.b
- The parameter to compare to.LionEngineException
- If check failed.public static void notNull(Object object)
null
.object
- The object to check.LionEngineException
- If object is null
.Copyright © 2017 Byron 3D Games Studio. All rights reserved.