Interface Assertions


public interface Assertions
  • Method Details

    • checkArgument

      @CanIgnoreReturnValue static <E extends Throwable> boolean checkArgument(boolean condition, @NotNull @NotNull Supplier<? extends E> supplier) throws E
      Throws:
      E
    • checkArgument

      @CanIgnoreReturnValue static <E extends Throwable> boolean checkArgument(boolean condition, @NotNull E exception) throws E
      Throws:
      E
    • checkNotNull

      @CanIgnoreReturnValue static <T, E extends Throwable> T checkNotNull(@CheckForNull T reference, @NotNull @NotNull Supplier<? extends E> supplier) throws E
      Throws:
      E
    • checkNotNull

      @CanIgnoreReturnValue static <T, E extends Throwable> T checkNotNull(@CheckForNull T reference, @NotNull E exception) throws E
      Throws:
      E