Interface VolumeStream<V extends Volume,T>
-
- Type Parameters:
V
- The type of volume backing this StreamT
- The type of element being iterated on
public interface VolumeStream<V extends Volume,T>
A specializedStream
<VolumeElement
<Volume
,T
>> that is lazily evaluated and backed/populated by the particularVolume
. Much likeStream
, there are intermediary operations that can be performed on the stream, and terminal operations. While aVolume
has many applications, on occasion work is requested to be performed in "bulk" or given a specific "work area".Intermediary Operations
These operations are performed on each individual
VolumeElement
<Volume
,T
> such that either the element is inspected or filtering can be performed. They are as follows:filter(VolumePredicate)
filter(Predicate)
map(VolumeMapper<V, T>)
map(Function<VolumeElement<V, T>>)
Terminal Operations
These operations are consuming the entirety of the stream, after all intermediary operations are performed on elements, perhaps filtering, or perhaps supplying different instances as "replacements". TODO flesh out the description of VolumeStream
-
-
Method Summary
-
-
-
Method Detail
-
volume
V volume()
-
filter
VolumeStream<V,T> filter(VolumePredicate<V,T> predicate)
-
filter
default VolumeStream<V,T> filter(Predicate<VolumeElement<V,? super T>> predicate)
-
map
<Out> VolumeStream<V,Out> map(VolumeMapper<V,T,Out> mapper)
-
map
default <Out> VolumeStream<V,Out> map(Function<VolumeElement<V,T>,? extends Out> mapper)
-
flatMap
VolumeStream<V,Optional<? extends T>> flatMap(VolumeFlatMapper<V,T> mapper)
-
flatMap
default VolumeStream<V,Optional<? extends T>> flatMap(Function<VolumeElement<V,T>,Optional<? extends T>> mapper)
-
transform
VolumeStream<V,T> transform(VolumePositionTranslator<V,T> transformer)
-
count
long count()
-
allMatch
boolean allMatch(VolumePredicate<V,? super T> predicate)
-
allMatch
default boolean allMatch(Predicate<VolumeElement<V,? super T>> predicate)
-
noneMatch
boolean noneMatch(VolumePredicate<V,? super T> predicate)
-
noneMatch
default boolean noneMatch(Predicate<VolumeElement<V,? super T>> predicate)
-
anyMatch
boolean anyMatch(VolumePredicate<V,? super T> predicate)
-
anyMatch
default boolean anyMatch(Predicate<VolumeElement<V,? super T>> predicate)
-
findFirst
Optional<VolumeElement<V,T>> findFirst()
-
findAny
Optional<VolumeElement<V,T>> findAny()
-
toStream
Stream<VolumeElement<V,T>> toStream()
-
apply
default <W extends MutableVolume> void apply(VolumeCollector<W,T,?> collector)
-
applyUntil
<W extends MutableVolume,R> void applyUntil(VolumeCollector<W,T,R> collector, Predicate<R> predicate)
-
forEach
void forEach(VolumeConsumer<V,T> visitor)
-
forEach
default void forEach(Consumer<VolumeElement<V,T>> consumer)
-
-