O
- object typeprotected static class HashMapHierarchy.Rec<O>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
HashMapHierarchy.Rec.ItrChildren
Child iterator.
|
private class |
HashMapHierarchy.Rec.ItrChildrenReverse
Child iterator.
|
private class |
HashMapHierarchy.Rec.ItrParents
Parent iterator.
|
private class |
HashMapHierarchy.Rec.ItrParentsReverse
Parent iterator.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object[] |
children
Children.
|
private static java.lang.Object[] |
EMPTY
Empty list.
|
(package private) int |
numc
Number of parents, number of children.
|
(package private) int |
nump
Number of parents, number of children.
|
(package private) java.lang.Object[] |
parents
Parents.
|
Modifier | Constructor and Description |
---|---|
protected |
Rec() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
addChild(O child)
Add a child.
|
(package private) boolean |
addParent(O parent)
Add a parent.
|
It<O> |
iterChildren()
Iterate over parents.
|
It<O> |
iterChildrenReverse()
Iterate over parents.
|
It<O> |
iterParents()
Iterate over parents.
|
It<O> |
iterParentsReverse()
Iterate over parents.
|
(package private) boolean |
removeChild(O child)
Remove a child.
|
(package private) boolean |
removeParent(O parent)
Remove a parent.
|
int nump
int numc
java.lang.Object[] parents
java.lang.Object[] children
private static final java.lang.Object[] EMPTY
boolean addParent(O parent)
parent
- Parent to add.true
when changedboolean addChild(O child)
child
- Child to addtrue
when changedboolean removeParent(O parent)
parent
- Parent to remove.true
when changedboolean removeChild(O child)
child
- Child to remove.true
when changedpublic It<O> iterParentsReverse()
Copyright © 2019 ELKI Development Team. License information.