public class ContactInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ContactInfo> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ContactInfo(String phoneNumber)
Initializes a new instance of the
ContactInfo . |
ContactInfo(String phoneNumber,
String name)
Initializes a new instance of the
ContactInfo . |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o)
Compared by phone number only.
|
String |
getName()
Gets the contact name.
|
String |
getPhoneNumber()
Gets the contact phone number.
|
int |
hashCode()
Hashed by phone number only.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ContactInfo> CREATOR
public ContactInfo(String phoneNumber)
ContactInfo
.phoneNumber
- Contact phone number. Can not be null or empty.InrixException
- Thrown when phone number is null or empty.public ContactInfo(String phoneNumber, String name)
ContactInfo
.phoneNumber
- Contact phone number. Can not be null or empty.name
- Contact name.InrixException
- Thrown when phone number is null or empty.public String getName()
public String getPhoneNumber()
public boolean equals(Object o)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.