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 ActivityHierarchy
public boolean valid()
valid
in interface ActivityHierarchy
public ActivityHandle activity(int index) throws IndexOutOfBoundsException
activity
in interface ActivityHierarchy
the
- specific activity in the stack.IndexOutOfBoundsException
- Thrown if the activity number
is too large or small.public ActivityHandle current()
current
in interface ActivityHierarchy
public ActivityHierarchy copy()
copy
in interface ActivityHierarchy
public boolean equals(Object obj)
equals
in interface ActivityHierarchy
equals
in class Object
true
if the two objects are the same,
false
otherwise.public int hashCode()
hashCode
in interface ActivityHierarchy
hashCode
in class Object
Copyright © 2016 JBoss by Red Hat. All rights reserved.