public final class ComponentName extends Object implements Parcelable, Cloneable, Comparable<ComponentName>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<ComponentName> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
ComponentName(Context pkg,
Class<?> cls) |
ComponentName(Context pkg,
String cls) |
ComponentName(Parcel in) |
ComponentName(String pkg,
String cls) |
| Modifier and Type | Method and Description |
|---|---|
ComponentName |
clone() |
int |
compareTo(ComponentName that) |
int |
describeContents() |
boolean |
equals(Object obj) |
String |
flattenToShortString() |
String |
flattenToString() |
String |
getClassName() |
String |
getPackageName() |
String |
getShortClassName() |
int |
hashCode() |
static ComponentName |
readFromParcel(Parcel in) |
String |
toShortString() |
String |
toString() |
static ComponentName |
unflattenFromString(String str) |
static void |
writeToParcel(ComponentName c,
Parcel out) |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<ComponentName> CREATOR
public ComponentName(Parcel in)
public ComponentName clone()
public String getPackageName()
public String getClassName()
public String getShortClassName()
public String flattenToString()
public String flattenToShortString()
public static ComponentName unflattenFromString(String str)
public String toShortString()
public int compareTo(ComponentName that)
compareTo in interface Comparable<ComponentName>public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel out, int flags)
writeToParcel in interface Parcelablepublic static void writeToParcel(ComponentName c, Parcel out)
public static ComponentName readFromParcel(Parcel in)
Copyright © 2008-2013. All Rights Reserved.