Interface IStream<T,​E extends java.lang.Exception>

  • All Superinterfaces:
    java.lang.AutoCloseable, ICloseable<E>
    All Known Implementing Classes:
    FailedStream

    public interface IStream<T,​E extends java.lang.Exception>
    extends ICloseable<E>
    • Method Detail

      • instanceOf

        <O> IStream<O,​E> instanceOf​(java.lang.Class<O> clazz)
      • throwIfFailed

        void throwIfFailed()
                    throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • asCollection

        <O> java.util.Collection<O> 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

        <O> IObjectList<O> asObjectList()
                                 throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • asStream

        <O> java.util.stream.Stream<O> asStream()
                                         throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • 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
      • foundAny

        boolean foundAny​(IAcceptor<T> acceptor)
                  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()
      • toStream

        java.util.stream.Stream<T> toStream()
                                     throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • toIterable

        java.lang.Iterable<T> toIterable()
                                  throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • close

        default void close()
                    throws E extends java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ICloseable<T>
        Throws:
        E extends java.lang.Exception