Class FailedStream<T,​E extends java.lang.Exception>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, ICloseable<E>, IStream<T,​E>

    public class FailedStream<T,​E extends java.lang.Exception>
    extends java.lang.Object
    implements IStream<T,​E>
    • Method Detail

      • execute

        public IStream<T,​E> execute()
        Specified by:
        execute in interface IStream<T,​E extends java.lang.Exception>
      • flat

        public <O> IStream<O,​E> flat​(IConverter<T,​java.lang.Iterable<O>,​E> funtion)
        Specified by:
        flat in interface IStream<T,​E extends java.lang.Exception>
      • convert

        public <O> IStream<O,​E> convert​(IAggregator<java.lang.Integer,​T,​O,​E> aggregator)
        Specified by:
        convert in interface IStream<T,​E extends java.lang.Exception>
      • notNull

        public IStream<T,​E> notNull()
        Specified by:
        notNull in interface IStream<T,​E extends java.lang.Exception>
      • revert

        public IStream<T,​E> revert()
        Specified by:
        revert in interface IStream<T,​E extends java.lang.Exception>
      • instanceOf

        public <O> IStream<O,​E> instanceOf​(java.lang.Class<O> clazz)
        Specified by:
        instanceOf in interface IStream<T,​E extends java.lang.Exception>
      • asArray

        public <O> O[] asArray​(java.util.function.IntFunction<O[]> function)
                        throws E extends java.lang.Exception
        Specified by:
        asArray in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • toIterable

        public java.lang.Iterable<T> toIterable()
                                         throws E extends java.lang.Exception
        Specified by:
        toIterable in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asCollection

        public <O> java.util.Collection<O> asCollection()
                                                 throws E extends java.lang.Exception
        Specified by:
        asCollection in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asList

        public <O> java.util.List<O> asList()
                                     throws E extends java.lang.Exception
        Specified by:
        asList in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asSet

        public <O> java.util.Set<O> asSet()
                                   throws E extends java.lang.Exception
        Specified by:
        asSet in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asMap

        public <K,​V> java.util.Map<K,​V> asMap​(IFactory<T,​K,​E> keyFactrory,
                                                          IFactory<T,​V,​E> valueFactrory)
                                                   throws E extends java.lang.Exception
        Specified by:
        asMap in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asObjectList

        public <O> IObjectList<O> asObjectList()
                                        throws E extends java.lang.Exception
        Specified by:
        asObjectList in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • foundAny

        public boolean foundAny()
                         throws E extends java.lang.Exception
        Specified by:
        foundAny in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • throwIfFailed

        public void throwIfFailed()
                           throws E extends java.lang.Exception
        Specified by:
        throwIfFailed in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • isEmpty

        public boolean isEmpty()
                        throws E extends java.lang.Exception
        Specified by:
        isEmpty in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • isSuccessful

        public boolean isSuccessful()
        Specified by:
        isSuccessful in interface IStream<T,​E extends java.lang.Exception>
      • foundAny

        public boolean foundAny​(IAcceptor<T> acceptor)
                         throws E extends java.lang.Exception
        Specified by:
        foundAny in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • asStream

        public <O> java.util.stream.Stream<O> asStream()
                                                throws E extends java.lang.Exception
        Specified by:
        asStream in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • toStream

        public java.util.stream.Stream<T> toStream()
                                            throws E extends java.lang.Exception
        Specified by:
        toStream in interface IStream<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception