public class ActivityHierarchyImple extends Object implements ActivityHierarchy
| Modifier | Constructor and Description |
|---|---|
protected |
ActivityHierarchyImple(ActivityHierarchyImple toCopy) |
|
ActivityHierarchyImple(ActivityImple current) |
| Modifier and Type | Method and Description |
|---|---|
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() |
String |
toString() |
boolean |
valid() |
public ActivityHierarchyImple(ActivityImple current)
protected ActivityHierarchyImple(ActivityHierarchyImple toCopy)
public int size()
size in interface ActivityHierarchypublic boolean valid()
valid in interface ActivityHierarchypublic ActivityHandle activity(int index) throws IndexOutOfBoundsException
activity in interface ActivityHierarchythe - specific activity in the stack.IndexOutOfBoundsException - Thrown if the activity number
is too large or small.public ActivityHandle current()
current in interface ActivityHierarchypublic ActivityHierarchy copy()
copy in interface ActivityHierarchypublic boolean equals(Object obj)
equals in interface ActivityHierarchyequals in class Objecttrue if the two objects are the same,
false otherwise.public int hashCode()
hashCode in interface ActivityHierarchyhashCode in class ObjectCopyright © 2016 JBoss by Red Hat. All rights reserved.