|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.gcubedocumentlibrary.streams.folding.FoldingAbstractAdapter<FROM,TO,E>
FROM - the type of elements of the underlying stream.TO - the type of elements of the stream.E - the type of stream processing faults returned by the adapter.public abstract class FoldingAbstractAdapter<FROM,TO,E extends java.lang.Exception>
Abstract implementation for streams that adapt the elements of RemoteIterator-based streams
by folding them into Lists of the same or different type.
| Constructor Summary | |
|---|---|
FoldingAbstractAdapter(
Creates an instance with a RemoteIterator, a Filter, and a IFaultPolicy. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the stream has more elements. |
|
inner()
Returns the stream underlying this adapter. |
java.util.List<TO> |
next()
Returns the next element in the stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FoldingAbstractAdapter(rit, Filter<FROM,TO> f, IFaultPolicy<? extends E> h, int s)
RemoteIterator, a Filter, and a IFaultPolicy.
rit - the iterator.f - the filter.h - the fault handler.| Method Detail |
|---|
publicinner()
public boolean hasNext()
true if the stream has more elements.
true if the stream has more elements.
public java.util.List<TO> next()
throws E extends java.lang.Exception
E - if the next element in the stream could not be returned.
E extends java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||