Class ImmutableConditions
- java.lang.Object
-
- com.hubspot.immutables.validation.ImmutableConditions
-
public class ImmutableConditions extends Object
-
-
Constructor Summary
Constructors Constructor Description ImmutableConditions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckNotEmpty(String string, String template, Object... arguments)static voidcheckNotEmpty(Collection<?> collection, String template, Object... arguments)static <T> TcheckNotNull(T ref, String template, Object... arguments)static <T> TcheckPresent(Optional<T> maybe, String template, Object... arguments)static voidcheckValid(boolean expression, String template, Object... arguments)
-
-
-
Method Detail
-
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)
-
-