Class Checks


  • public class Checks
    extends Object
    Flogger's own version of the Guava Preconditions class for simple, often used checks.
    • Method Detail

      • checkNotNull

        @CanIgnoreReturnValue
        public static <T> T checkNotNull​(T value,
                                         String name)
      • checkArgument

        public static void checkArgument​(boolean condition,
                                         String message)
      • checkState

        public static void checkState​(boolean condition,
                                      String message)
      • checkMetadataIdentifier

        @CanIgnoreReturnValue
        public static String checkMetadataIdentifier​(String s)
        Checks if the given string is a valid metadata identifier.