com.xtremelabs.robolectric.shadows
Class ShadowComponentName
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowComponentName
@Implements(value=android.content.ComponentName.class)
public class ShadowComponentName
- extends java.lang.Object
Shadows the android.content.ComponentName
class.
Just keeps track of the package and class names, and then gives them back when you ask for them.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ShadowComponentName
public ShadowComponentName()
__constructor__
public void __constructor__(java.lang.String pkg,
java.lang.String cls)
__constructor__
public void __constructor__(android.content.Context pkg,
java.lang.String cls)
__constructor__
public void __constructor__(android.content.Context pkg,
java.lang.Class<?> cls)
getPackageName
@Implementation
public java.lang.String getPackageName()
getClassName
@Implementation
public java.lang.String getClassName()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object