|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.varankin.io.stream.Marker<T>
public final class Marker<T>
Iterable passthrough object that wraps incoming objects into
container marked with structured location. Indices of location
are limited by value of Long.MAX_VALUE
.
Nested Class Summary | |
---|---|
static class |
Marker.Box<Unit>
Container to wrap incoming object. |
Constructor Summary | |
---|---|
Marker(java.lang.Iterable<T> aSource,
T... aBreakers)
|
Method Summary | |
---|---|
java.util.Iterator<Marker.Box<T>> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Marker(java.lang.Iterable<T> aSource, T... aBreakers)
aSource
- provider of incoming objects.aBreakers
- patterns of incoming objects to form ranks of location counters;
when incoming object equals some pattern, it increases correspondent
counter and resets all lowest counters to zero.Method Detail |
---|
public java.util.Iterator<Marker.Box<T>> iterator()
iterator
in interface java.lang.Iterable<Marker.Box<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |