Class Validate

java.lang.Object
it.auties.whatsapp.util.Validate

public final class Validate extends Object
  • Constructor Details

    • Validate

      public Validate()
  • Method Details

    • isTrue

      public static void isTrue(boolean value, String message, Object... args)
    • 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

      private static Throwable createThrowable(Class<? extends Throwable> throwable, String formattedMessage)