Package net.anwiba.commons.lang.stream
Interface IStream<T,E extends java.lang.Exception>
-
- All Known Implementing Classes:
FailedStream
public interface IStream<T,E extends java.lang.Exception>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <O> IOptional<O,E>aggregate(O inital, IAggregator<O,T,O,E> aggregator)<O> O[]asArray(java.util.function.IntFunction<O[]> function)java.util.Collection<T>asCollection()java.lang.Iterable<T>asIterable()<O> java.util.List<O>asList()<K,V>
java.util.Map<K,V>asMap(IFactory<T,K,E> keyFactrory, IFactory<T,V,E> valueFactrory)IObjectList<T>asObjectList()<O> java.util.Set<O>asSet()<O> IStream<O,E>convert(IAggregator<java.lang.Integer,T,O,E> aggregator)<O> IStream<O,E>convert(IConverter<T,O,E> funtion)IStream<T,E>distinct()IStream<T,E>execute()IStream<T,E>failed(ISupplier<java.lang.Iterable<T>,E> supplier)IStream<T,E>filter(IAcceptor<T> funtion)IOptional<T,E>first()IOptional<T,E>first(IAcceptor<T> acceptor)<O> IStream<O,E>flat(IConverter<T,java.lang.Iterable<O>,E> funtion)IStream<T,E>foreach(int initial, IIntAssimilator<T,E> assimilator)IStream<T,E>foreach(IAssimilator<java.lang.Integer,T,E> assimilator)IStream<T,E>foreach(IConsumer<T,E> consumer)booleanfoundAny()<O> IStream<O,E>instanceOf(java.lang.Class<O> clazz)booleanisEmpty()booleanisSuccessful()IStream<T,E>notNull()IStream<T,E>revert()voidthrowIfFailed()
-
-
-
Method Detail
-
convert
<O> IStream<O,E> convert(IConverter<T,O,E> funtion)
-
flat
<O> IStream<O,E> flat(IConverter<T,java.lang.Iterable<O>,E> funtion)
-
convert
<O> IStream<O,E> convert(IAggregator<java.lang.Integer,T,O,E> aggregator)
-
throwIfFailed
void throwIfFailed() throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
asIterable
java.lang.Iterable<T> asIterable() throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
asCollection
java.util.Collection<T> asCollection() throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
asList
<O> java.util.List<O> asList() throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
asMap
<K,V> java.util.Map<K,V> asMap(IFactory<T,K,E> keyFactrory, IFactory<T,V,E> valueFactrory) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
asArray
<O> O[] asArray(java.util.function.IntFunction<O[]> function) throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
asObjectList
IObjectList<T> asObjectList() throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
aggregate
<O> IOptional<O,E> aggregate(O inital, IAggregator<O,T,O,E> aggregator)
-
asSet
<O> java.util.Set<O> asSet() throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
foundAny
boolean foundAny() throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
isEmpty
boolean isEmpty() throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
isSuccessful
boolean isSuccessful()
-
-