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 extends Throwable
      Throws:
      E extends Throwable
    • checkArgument

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

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

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