android.content
Class ComponentName

java.lang.Object
  extended by android.content.ComponentName
All Implemented Interfaces:
Parcelable, Cloneable, Comparable<ComponentName>

public final class ComponentName
extends Object
implements Parcelable, Cloneable, Comparable<ComponentName>


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<ComponentName> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ComponentName(Context pkg, Class<?> cls)
           
ComponentName(Context pkg, String cls)
           
ComponentName(Parcel in)
           
ComponentName(String pkg, String cls)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<ComponentName> CREATOR
Constructor Detail

ComponentName

public ComponentName(String pkg,
                     String cls)

ComponentName

public ComponentName(Context pkg,
                     String cls)

ComponentName

public ComponentName(Context pkg,
                     Class<?> cls)

ComponentName

public ComponentName(Parcel in)
Method Detail

clone

public ComponentName clone()
Overrides:
clone in class Object

getPackageName

public String getPackageName()

getClassName

public String getClassName()

getShortClassName

public String getShortClassName()

flattenToString

public String flattenToString()

flattenToShortString

public String flattenToShortString()

unflattenFromString

public static ComponentName unflattenFromString(String str)

toShortString

public String toShortString()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(ComponentName that)
Specified by:
compareTo in interface Comparable<ComponentName>

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel out,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

writeToParcel

public static void writeToParcel(ComponentName c,
                                 Parcel out)

readFromParcel

public static ComponentName readFromParcel(Parcel in)


Copyright © 2008-2012. All Rights Reserved.