FileDocCategorySizeDatePackage
Objects.javaAPI DocAndroid 1.5 API1360Wed May 06 22:41:56 BST 2009com.android.internal.util

Objects

public class Objects extends Object
Object utility methods.

Fields Summary
Constructors Summary
Methods Summary
public static TnonNull(T t)
Ensures the given object isn't {@code null}.

return
the given object
throws
NullPointerException if the object is null

        if (t == null) {
            throw new NullPointerException();
        }
        return t;
    
public static TnonNull(T t, java.lang.String message)
Ensures the given object isn't {@code null}.

return
the given object
throws
NullPointerException if the object is null

        if (t == null) {
            throw new NullPointerException(message);
        }
        return t;