Interface Assertions
public interface Assertions
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <E extends Throwable>
booleancheckArgument(boolean condition, E exception) static <E extends Throwable>
booleancheckArgument(boolean condition, @NotNull Supplier<? extends E> supplier) static <T, E extends Throwable>
TcheckNotNull(T reference, E exception) static <T, E extends Throwable>
TcheckNotNull(T reference, @NotNull Supplier<? extends E> supplier)
-
Method Details
-
checkArgument
-
checkArgument
@CanIgnoreReturnValue static <E extends Throwable> boolean checkArgument(boolean condition, @NotNull E exception) throws E - Throws:
E
-
checkNotNull
-
checkNotNull
@CanIgnoreReturnValue static <T, E extends Throwable> T checkNotNull(@CheckForNull T reference, @NotNull E exception) throws E - Throws:
E
-