Package com.google.gson.internal
Class $Gson$Preconditions
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 voidcheckArgument(boolean condition) static <T> TcheckNotNull(T obj)
-
Constructor Details
-
$Gson$Preconditions
private $Gson$Preconditions()
-
-
Method Details
-
checkNotNull
public static <T> T checkNotNull(T obj) -
checkArgument
public static void checkArgument(boolean condition)
-