java.lang.Object
it.auties.whatsapp.util.Validate
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
isTrue
-
isTrue
public static <T extends Throwable> void isTrue(boolean value, Class<? extends Throwable> throwable) throws T - Throws:
T
-
isTrue
public static <T extends Throwable> void isTrue(boolean value, Supplier<T> throwableSupplier) throws T - Throws:
T
-
isTrue
public static <T extends Throwable> void isTrue(boolean value, String message, Class<? extends Throwable> throwable, Object... args) throws T - Throws:
T
-
createThrowable
-