|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityHierarchy
This class represents a handle on a stack of activities. It should only be used for suspending and resuming the thread-to-activity association. The activity at the top of the stack is the current activity.
| Method Summary | |
|---|---|
ActivityHandle |
activity(int index)
|
ActivityHierarchy |
copy()
Obtain a copy of this context. |
ActivityHandle |
current()
|
boolean |
equals(Object obj)
Overrides Object.equals Two contexts are equal if both hierarchies are identical. |
int |
hashCode()
Although users won't typically care what the underlying implementation of a context is, they will need to do comparisons. |
int |
size()
|
boolean |
valid()
|
| Method Detail |
|---|
int size()
boolean valid()
ActivityHandle activity(int index)
throws IndexOutOfBoundsException
index - index of the specific activity in the stack.
IndexOutOfBoundsException - Thrown if the activity number
is too large or small.ActivityHandle current()
ActivityHierarchy copy()
boolean equals(Object obj)
equals in class Objecttrue if the two objects are the same,
false otherwise.int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||