Package io.a2a.util
Class Assert
java.lang.Object
io.a2a.util.Assert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcheckNotNullParam(String name, T value) Check that the named parameter is notnull.static voidisNullOrStringOrInteger(Object value)
-
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 notnull. Use a standard exception message if it is.- Type Parameters:
T- the value type- Parameters:
name- the parameter namevalue- the parameter value- Returns:
- the value that was passed in
- Throws:
IllegalArgumentException- if the value isnull
-
isNullOrStringOrInteger
-