Class ImmutableConditions

java.lang.Object
com.hubspot.immutables.validation.ImmutableConditions

public class ImmutableConditions extends Object
  • Constructor Details

    • ImmutableConditions

      public ImmutableConditions()
  • Method Details

    • 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)