Package com.j_spaces.sadapter.datasource
Class EntryAdapterIterator
java.lang.Object
com.j_spaces.sadapter.datasource.EntryAdapterIterator
- All Implemented Interfaces:
DataIterator<IEntryPacket>,Iterator<IEntryPacket>
EntryAdapterIterator provides a wrapper for the DataIterator returned by the
DataProvider . EntryAdapterIterator converts the data objects returned by the
iterator to space internal representation.- Author:
- anna
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntryAdapterIterator(DataIterator<Object> iterator, EntryAdapter entryAdapter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
_iterator
-
_entryAdapter
-
-
Constructor Details
-
EntryAdapterIterator
- Parameters:
iterator-
-
-
Method Details
-
close
public void close()Description copied from interface:DataIteratorClean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.- Specified by:
closein interfaceDataIterator<IEntryPacket>- See Also:
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<IEntryPacket>- Returns:
- true is next iterator is exists , else false
- See Also:
-
next
- Specified by:
nextin interfaceIterator<IEntryPacket>- Returns:
- IEntryPacket
- See Also:
-
remove
public void remove()- Specified by:
removein interfaceIterator<IEntryPacket>- See Also:
-