public final class Preconditions extends Object
com.google.common.base.Preconditions that is specially tailored
to support checks applied in AutoFactory's generated code.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T reference,
int argumentIndex)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
public static <T> T checkNotNull(T reference,
int argumentIndex)
reference - an object referenceargumentIndex - the index of the argument for the AutoFactory method which is being checked.NullPointerException - if reference is nullCopyright © 2017 Google, Inc.. All Rights Reserved.