E
- Class of the elements that are being searched.public abstract class SearchIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<E,E> |
parentOf |
Constructor and Description |
---|
SearchIterator() |
Modifier and Type | Method and Description |
---|---|
E |
getParent(E object)
Public method to get the parent of an element that has been found in the search.
|
boolean |
isFound(E object)
Public method that allows to know if an element has been found in the search.
|
void |
remove() |
public boolean isFound(E object)
object
- Object to checkpublic E getParent(E object)
object
- Object to checkpublic void remove()
remove
in interface java.util.Iterator<E>