Class ImmutableConditions


  • public class ImmutableConditions
    extends Object
    • Constructor Detail

      • ImmutableConditions

        public ImmutableConditions()
    • Method Detail

      • checkValid

        public static void checkValid​(boolean expression,
                                      String template,
                                      Object... arguments)
      • checkNotEmpty

        public static void checkNotEmpty​(Collection<?> collection,
                                         String template,
                                         Object... arguments)
      • checkNotEmpty

        public static void checkNotEmpty​(String string,
                                         String template,
                                         Object... arguments)
      • checkNotNull

        @Nonnull
        public static <T> T checkNotNull​(T ref,
                                         String template,
                                         Object... arguments)
      • checkPresent

        public static <T> T checkPresent​(Optional<T> maybe,
                                         String template,
                                         Object... arguments)