English | Site Directory

Android - An Open Handset Alliance Project

android.content
public static final class

android.content.Intent.FilterComparison

java.lang.Object
android.content.Intent.FilterComparison

Wrapper class holding an Intent and implementing comparisons on it for the purpose of filtering. The class implements its equals() and hashCode() methods as simple calls to filterEquals() and filterHashCode() on the wrapped Intent.

Summary

Public Constructors

          Intent.FilterComparison(Intent intent)

Public Methods

        boolean  equals(Object obj)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
        Intent  getIntent()
Return the Intent that this FilterComparison represents.
        int  hashCode()
Answers an integer hash code for the receiver.
Methods inherited from class java.lang.Object

Details

Public Constructors

public Intent.FilterComparison(Intent intent)

Public Methods

public boolean equals(Object obj)

Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).

Parameters

obj Object the object to compare with this object.

public Intent getIntent()

Return the Intent that this FilterComparison represents.

Returns

  • Returns the Intent held by the FilterComparison. Do not modify!

public int hashCode()

Answers an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.
Build m5-rc15g - 14 May 2008 12:50