
O - object typeprivate static class HashMapHierarchy.Rec<O> extends Object
| Modifier and Type | Class and Description | 
|---|---|
(package private) class  | 
HashMapHierarchy.Rec.ItrChildren
Child iterator. 
 | 
(package private) class  | 
HashMapHierarchy.Rec.ItrParents
Parent iterator. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) Object[] | 
children
Children. 
 | 
(package private) int | 
numc
Number of parents, number of children. 
 | 
(package private) int | 
nump
Number of parents, number of children. 
 | 
(package private) Object[] | 
parents
Parents. 
 | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
HashMapHierarchy.Rec()  | 
| Modifier and Type | Method and Description | 
|---|---|
(package private) void | 
addChild(O child)
Add a child. 
 | 
(package private) void | 
addParent(O parent)
Add a parent. 
 | 
Hierarchy.Iter<O> | 
iterChildren()
Iterate over parents. 
 | 
Hierarchy.Iter<O> | 
iterParents()
Iterate over parents. 
 | 
(package private) void | 
removeChild(O child)
Remove a child. 
 | 
(package private) void | 
removeParent(O parent)
Remove a parent. 
 | 
int nump
int numc
Object[] parents
Object[] children
void addParent(O parent)
parent - Parent to add.void addChild(O child)
child - Child to addvoid removeParent(O parent)
parent - Parent to remove.void removeChild(O child)
child - Child to remove.public Hierarchy.Iter<O> iterParents()
public Hierarchy.Iter<O> iterChildren()