Class Check

java.lang.Object
com.tick42.glue.internal.core.Check

public final class Check
extends Object
  • Method Details

    • notNull

      public static <T> T notNull​(T value, String name)
    • notNegative

      public static int notNegative​(int value, String name)
    • notNegative

      public static long notNegative​(long value, String name)
    • notNullOrNegative

      public static Duration notNullOrNegative​(Duration timeout, String name)
    • notEmpty

      public static String notEmpty​(String string, String name)
    • notEmpty

      public static <T> Collection<T> notEmpty​(Collection<T> collection, String name)
    • isLong

      public static long isLong​(Object value, String name)
    • isString

      public static String isString​(Object value, String name)
    • notInNonBlockingThread

      public static void notInNonBlockingThread​(String operation)
    • isEmpty

      public static boolean isEmpty​(Map<?,​?> map)