java.lang.Object
com.google.gson.internal.$Gson$Preconditions
A simple utility class used to check method Preconditions.
public long divideBy(long value) { Preconditions.checkArgument(value != 0); return this.value / value; }
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkArgument
(boolean condition) static <T> T
checkNotNull
(T obj) Deprecated.This is an internal Gson method.
-
Constructor Details
-
$Gson$Preconditions
private $Gson$Preconditions()
-
-
Method Details
-
checkNotNull
Deprecated.This is an internal Gson method. UseObjects.requireNonNull(Object)
instead. -
checkArgument
public static void checkArgument(boolean condition)
-