English | Site Directory

Android - An Open Handset Alliance Project

android.util
public class

android.util.Objects

java.lang.Object
android.util.Objects

Object utility methods.

Summary

Public Constructors

          Objects()

Public Methods

      static  T  nonNull(T t)
Ensures the given object isn't null.
      static  T  nonNull(T t, String message)
Ensures the given object isn't null.
Methods inherited from class java.lang.Object

Details

Public Constructors

public Objects()

Public Methods

public static T nonNull(T t)

Ensures the given object isn't null.

Returns

  • the given object

Throws

NullPointerException if the object is null

public static T nonNull(T t, String message)

Ensures the given object isn't null.

Returns

  • the given object

Throws

NullPointerException if the object is null
Build m5-rc15i - 10 Jun 2008 13:54