Package com.tangosol.util
Class SimpleStreamer<T>
- java.lang.Object
 - 
- com.tangosol.util.SimpleStreamer<T>
 
 
- 
- 
Field Summary
- 
Fields inherited from interface com.tangosol.util.Streamer
ALL_INCLUSIVE, SIZED 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description SimpleStreamer(Iterable<T> iterable)Construct Streamer based onIterable.SimpleStreamer(Collection<T> coll)Construct Streamer based onCollection.SimpleStreamer(Iterator<T> iterator)Construct Streamer based onIterator.protectedSimpleStreamer(Iterator<T> iterator, long cSize, int nCharacteristics)Construct Streamer instance.SimpleStreamer(Stream<T> stream)Construct Streamer based onStream. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcharacteristics()A bit mask representing the set of characteristics of thisStreamer.booleanhasNext()Tnext()longsize()Return the exact size of the data set thisStreamerwill iterate over, or negative integer if the exact size is unknown.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining 
- 
Methods inherited from interface com.tangosol.util.Streamer
isAllInclusive, isSized, remove, spliterator, stream 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SimpleStreamer
public SimpleStreamer(Iterable<T> iterable)
Construct Streamer based onIterable.- Parameters:
 iterable- anIterableto createStreamerfrom
 
- 
SimpleStreamer
public SimpleStreamer(Iterator<T> iterator)
Construct Streamer based onIterator.- Parameters:
 iterator- anIteratorto createStreamerfrom
 
- 
SimpleStreamer
public SimpleStreamer(Stream<T> stream)
Construct Streamer based onStream.- Parameters:
 stream- aStreamto createStreamerfrom
 
- 
SimpleStreamer
public SimpleStreamer(Collection<T> coll)
Construct Streamer based onCollection.- Parameters:
 coll- aCollectionto createStreamerfrom
 
- 
SimpleStreamer
protected SimpleStreamer(Iterator<T> iterator, long cSize, int nCharacteristics)
Construct Streamer instance.- Parameters:
 iterator- anIteratorto createStreamerfromcSize- the number of elements thisStreamerwill iterate overnCharacteristics- the bit mask representing thisStreamer's characteristics
 
 - 
 
- 
Method Detail
- 
size
public long size()
Description copied from interface:StreamerReturn the exact size of the data set thisStreamerwill iterate over, or negative integer if the exact size is unknown. 
- 
characteristics
public int characteristics()
Description copied from interface:StreamerA bit mask representing the set of characteristics of thisStreamer.- Specified by:
 characteristicsin interfaceStreamer<T>- Returns:
 - a bit mask representing the set of characteristics of this 
Streamer 
 
 - 
 
 -