Class StreamModule.AppendElements<T>

    • Constructor Detail

      • AppendElements

        AppendElements​(T head,
                       Queue<T> queue,
                       java.util.function.Supplier<Stream<T>> tail)
    • Method Detail

      • append

        public Stream<T> append​(T element)
        Description copied from interface: Seq
        Appends an element to this.
        Specified by:
        append in interface LinearSeq<T>
        Specified by:
        append in interface Seq<T>
        Specified by:
        append in interface Stream<T>
        Parameters:
        element - An element
        Returns:
        A new Seq containing the given element appended to this elements
      • appendAll

        public Stream<T> appendAll​(java.lang.Iterable<? extends T> elements)
        Description copied from interface: Seq
        Appends all given elements to this.
        Specified by:
        appendAll in interface LinearSeq<T>
        Specified by:
        appendAll in interface Seq<T>
        Specified by:
        appendAll in interface Stream<T>
        Parameters:
        elements - An Iterable of elements
        Returns:
        A new Seq containing the given elements appended to this elements
      • tail

        public Stream<T> tail()
        Description copied from interface: Traversable
        Drops the first element of a non-empty Traversable.
        Specified by:
        tail in interface LinearSeq<T>
        Specified by:
        tail in interface Seq<T>
        Specified by:
        tail in interface Stream<T>
        Specified by:
        tail in interface Traversable<T>
        Returns:
        A new instance of Traversable containing all elements except the first.
      • writeReplace

        @GwtIncompatible("The Java serialization protocol is explicitly not supported")
        private java.lang.Object writeReplace()
      • readObject

        @GwtIncompatible("The Java serialization protocol is explicitly not supported")
        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.InvalidObjectException
        Throws:
        java.io.InvalidObjectException