Package com.onelogin.saml2.util
Class Preconditions
- java.lang.Object
-
- com.onelogin.saml2.util.Preconditions
-
public final class Preconditions extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePreconditions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TcheckNotNull(T t, java.lang.String message)Throws a NullPointerException iftis null.
-
-
-
Method Detail
-
checkNotNull
public static <T> T checkNotNull(T t, java.lang.String message)Throws a NullPointerException iftis null.- Parameters:
t- the value to check for nullmessage- the message to include in the thrown exception- Returns:
- T
- Throws:
java.lang.NullPointerException- iftis null
-
-