Package ch.njol.util

Class Validate

java.lang.Object
ch.njol.util.Validate

@Deprecated(forRemoval=true) public final class Validate extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
use Preconditions
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    isFalse(boolean value, String error)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    isTrue(boolean value, String error)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notEmpty(int[] array, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notEmpty(@Nullable String value, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notEmpty(Object[] array, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notNull(@Nullable Object object, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notNull(Object... objects)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notNullOrEmpty(@Nullable String value, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notNullOrEmpty(Object @Nullable [] array, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    notNullOrEmpty(@Nullable Collection<?> collection, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • notNull

      public static void notNull(Object... objects)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notNull

      public static void notNull(@Nullable @Nullable Object object, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isTrue

      public static void isTrue(boolean value, String error)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isFalse

      public static void isFalse(boolean value, String error)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notNullOrEmpty

      public static void notNullOrEmpty(@Nullable @Nullable String value, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notNullOrEmpty

      public static void notNullOrEmpty(Object @Nullable [] array, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notNullOrEmpty

      public static void notNullOrEmpty(@Nullable @Nullable Collection<?> collection, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notEmpty

      public static void notEmpty(@Nullable @Nullable String value, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notEmpty

      public static void notEmpty(Object[] array, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • notEmpty

      public static void notEmpty(int[] array, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.