public class Validate extends Object
| Constructor and Description |
|---|
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
isFalse(Object object)
A method used to validate that an object is equal to false, if not this method will throw
an exception.
|
static void |
isFalse(Object object,
String message)
A method used to validate that an object is equal to false, if not this method will throw
an exception with the specified message.
|
static void |
isTrue(Object object)
A method used to validate that an object is equal to true, if not this method will throw
an exception.
|
static void |
isTrue(Object object,
String message)
A method used to validate that an object is equal to true, if not this method will throw
an exception with the specified message.
|
static void |
notNull(Object object)
A method used to validate that an object is not null.
|
static void |
notNull(Object object,
String message)
A method used to validate that an object is not null.
|
static void |
notNull(Object object,
String message,
Object... param)
A method used to validate that an object is not null.
|
public static void notNull(Object object)
object - Targeted objectpublic static void notNull(Object object, String message)
object - Targeted objectmessage - The exception messageIllegalArgumentException - Thrown if the object does not equal nullpublic static void notNull(Object object, String message, Object... param)
object - Targeted objectmessage - The exception messageparam - Optional parametersIllegalArgumentException - Thrown if the object does not equal nullpublic static void isTrue(Object object, String message)
object - Targeted objectmessage - The exception messageIllegalArgumentException - Thrown if tbe object is not true.public static void isTrue(Object object)
object - Targeted objectIllegalArgumentException - Thrown if tbe object is not true.public static void isFalse(Object object, String message)
object - Targeted objectmessage - The exception messageIllegalArgumentException - Thrown if tbe object is not false.public static void isFalse(Object object)
object - Targeted objectIllegalArgumentException - Thrown if tbe object is not false.Copyright © 2022. All rights reserved.