Package io.a2a.util

Class Assert

java.lang.Object
io.a2a.util.Assert

public final class Assert extends Object
  • Constructor Details

    • Assert

      public Assert()
  • Method Details

    • checkNotNullParam

      @NotNull public static <T> T checkNotNullParam(String name, T value) throws IllegalArgumentException
      Check that the named parameter is not null. Use a standard exception message if it is.
      Type Parameters:
      T - the value type
      Parameters:
      name - the parameter name
      value - the parameter value
      Returns:
      the value that was passed in
      Throws:
      IllegalArgumentException - if the value is null
    • isNullOrStringOrInteger

      public static void isNullOrStringOrInteger(Object value)