public final class Preconditions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T t,
String message)
Throws a NullPointerException if
t is null. |
public static <T> T checkNotNull(T t,
String message)
t is null.t - the value to check for nullmessage - the message to include in the thrown exceptionNullPointerException - if t is nullCopyright © 2022. All rights reserved.