Module net.anwiba.commons.lang
Package net.anwiba.commons.lang.stream
Interface IStream<T,E extends Exception>
- All Superinterfaces:
AutoCloseable,ICloseable<E>,Iterable<T>
- All Known Implementing Classes:
FailedStream
-
Method Summary
Modifier and TypeMethodDescriptionaggregate(O inital, IAggregator<O, T, O, E> aggregator) <O> O[]asArray(IntFunction<O[]> function) <O> Collection<O><O> Iterable<O><O> Iterator<O><O> List<O>asList()<K,V> Map<K, V> <O> IObjectList<O><O> Set<O>asSet()<O> Stream<O>asStream()default voidclose()convert(IAggregator<Integer, T, O, E> aggregator) convert(IConverter<T, O, E> funtion) distinct()first()flat(IConverter<T, Iterable<O>, E> funtion) foreach(int initial, IIntAssimilator<T, E> assimilator) foreach(IAssimilator<Integer, T, E> assimilator) booleanfoundAny()booleaninstanceOf(Class<O> clazz) booleanisEmpty()booleannotNull()revert()sort(Comparator<T> comparator) toStream()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
distinct
-
filter
-
convert
-
flat
-
convert
-
instanceOf
-
foreachAsOptional
-
sort
-
foreach
-
foreach
-
foreach
-
notNull
-
revert
-
failed
-
throwIfFailed
-
asCollection
-
asList
-
asMap
-
asArray
-
asObjectList
-
asStream
-
asIterable
-
asIterator
-
first
-
first
-
aggregate
-
asSet
-
foundAny
-
foundAny
-
isEmpty
-
isSuccessful
boolean isSuccessful() -
toStream
-
toIterable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceICloseable<T>- Throws:
E extends Exception
-