public class

ContactLookupKey

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.ContactLookupKey

Class Overview

Contacts lookup key. Used for generation and parsing of contact lookup keys as well as doing the actual lookup.

Summary

Nested Classes
class ContactLookupKey.LookupKeySegment  
Constants
int LOOKUP_TYPE_DISPLAY_NAME
int LOOKUP_TYPE_RAW_CONTACT_ID
int LOOKUP_TYPE_SOURCE_ID
Public Constructors
ContactLookupKey()
Public Methods
static void appendToLookupKey(StringBuilder lookupKey, String accountType, String accountName, long rawContactId, String sourceId, String displayName)
static int getAccountHashCode(String accountType, String accountName)
Returns a short hash code that functions as an additional precaution against the exceedingly improbable collision between sync IDs in different accounts.
ArrayList<ContactLookupKey.LookupKeySegment> parse(String lookupKey)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int LOOKUP_TYPE_DISPLAY_NAME

Constant Value: 1 (0x00000001)

public static final int LOOKUP_TYPE_RAW_CONTACT_ID

Constant Value: 2 (0x00000002)

public static final int LOOKUP_TYPE_SOURCE_ID

Constant Value: 0 (0x00000000)

Public Constructors

public ContactLookupKey ()

Public Methods

public static void appendToLookupKey (StringBuilder lookupKey, String accountType, String accountName, long rawContactId, String sourceId, String displayName)

public static int getAccountHashCode (String accountType, String accountName)

Returns a short hash code that functions as an additional precaution against the exceedingly improbable collision between sync IDs in different accounts.