com.google.gson.internal
Class $Gson$Preconditions

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

public final class $Gson$Preconditions
extends java.lang.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

Constructor Summary
$Gson$Preconditions()
           
 
Method Summary
static void checkArgument(boolean condition)
           
static
<T> T
checkNotNull(T obj)
           
static void checkState(boolean condition)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

$Gson$Preconditions

public $Gson$Preconditions()
Method Detail

checkNotNull

public static <T> T checkNotNull(T obj)

checkArgument

public static void checkArgument(boolean condition)

checkState

public static void checkState(boolean condition)


Copyright © 2008-2011 Google, Inc.. All Rights Reserved.