Class $Gson$Preconditions

java.lang.Object
com.google.gson.internal.$Gson$Preconditions

public final class $Gson$Preconditions extends Object
A simple utility class used to check method Preconditions.
public long divideBy(long value) {
  Preconditions.checkArgument(value != 0);
  return this.value / value;
}
Author:
Inderjeet Singh, Joel Leitch
  • Method Details

    • checkNotNull

      public static <T> T checkNotNull(T obj)
    • checkArgument

      public static void checkArgument(boolean condition)