|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.util.AbstractObjectIterator<T>
messif.buckets.index.SearchAbstractObjectIterator<T>
messif.buckets.index.SearchAbstractObjectDualIterator<T>
T
- the class of the iterated objectspublic class SearchAbstractObjectDualIterator<T extends LocalAbstractObject>
Provides a bridge between Search
and AbstractObjectIterator
.
This iterator will go always one object forward then one object backward
from the initial object of the search.
Field Summary |
---|
Fields inherited from class messif.buckets.index.SearchAbstractObjectIterator |
---|
hasNext, search |
Constructor Summary | |
---|---|
SearchAbstractObjectDualIterator(Search<T> search)
Creates a new instance of SearchAbstractObjectIterator for the specified Search instance. |
|
SearchAbstractObjectDualIterator(Search<T> search,
int limit)
Creates a new instance of SearchAbstractObjectIterator for the specified Search instance. |
Method Summary | |
---|---|
T |
getCurrentObject()
Returns an object returned by the last call to Iterator.next() . |
boolean |
hasNext()
|
Methods inherited from class messif.buckets.index.SearchAbstractObjectIterator |
---|
getCount, getLimit, isLimitReached, next, remove |
Methods inherited from class messif.objects.util.AbstractObjectIterator |
---|
getCurrentObjectID, getMatchingObjects, getMatchingObjects, getMatchingObjects, getMatchingObjects, getObjectByAnyLocator, getObjectByData, getObjectByID, getObjectByLocator, getObjectByPosition, getRandomObject, getRandomObjects, nextObjectID, provideObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchAbstractObjectDualIterator(Search<T> search, int limit) throws java.lang.CloneNotSupportedException
Search
instance.
search
- the Search
instance to wrap by this iteratorlimit
- limit the number of iterations (zero means unlimited)
java.lang.CloneNotSupportedException
- if there was an error clonning the searchpublic SearchAbstractObjectDualIterator(Search<T> search) throws java.lang.CloneNotSupportedException
Search
instance.
Number of iterations is not limited.
search
- the Search
instance to wrap by this iterator
java.lang.CloneNotSupportedException
- if there was an error clonning the searchMethod Detail |
---|
public T getCurrentObject()
AbstractObjectIterator
Iterator.next()
.
getCurrentObject
in class SearchAbstractObjectIterator<T extends LocalAbstractObject>
Iterator.next()
public boolean hasNext()
hasNext
in interface java.util.Iterator<T extends LocalAbstractObject>
hasNext
in class SearchAbstractObjectIterator<T extends LocalAbstractObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |