com.facebook.internal
Class Validate

java.lang.Object
  extended by com.facebook.internal.Validate

public final class Validate
extends Object

com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.


Constructor Summary
Validate()
           
 
Method Summary
static
<T> void
containsNoNulls(Collection<T> container, String name)
           
static
<T> void
notEmpty(Collection<T> container, String name)
           
static
<T> void
notEmptyAndContainsNoNulls(Collection<T> container, String name)
           
static void notNull(Object arg, String name)
           
static void notNullOrEmpty(String arg, String name)
           
static void oneOf(Object arg, String name, Object... values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validate

public Validate()
Method Detail

notNull

public static void notNull(Object arg,
                           String name)

notEmpty

public static <T> void notEmpty(Collection<T> container,
                                String name)

containsNoNulls

public static <T> void containsNoNulls(Collection<T> container,
                                       String name)

notEmptyAndContainsNoNulls

public static <T> void notEmptyAndContainsNoNulls(Collection<T> container,
                                                  String name)

notNullOrEmpty

public static void notNullOrEmpty(String arg,
                                  String name)

oneOf

public static void oneOf(Object arg,
                         String name,
                         Object... values)