Class StreamModule.AppendElements<T>

java.lang.Object
io.vavr.collection.Stream.Cons<T>
io.vavr.collection.StreamModule.AppendElements<T>
All Implemented Interfaces:
Foldable<T>, LinearSeq<T>, Seq<T>, Stream<T>, Traversable<T>, Function1<Integer,T>, PartialFunction<Integer,T>, Value<T>, Serializable, Iterable<T>, Function<Integer,T>
Enclosing interface:
StreamModule

public static final class StreamModule.AppendElements<T> extends Stream.Cons<T> implements Serializable
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • 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(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 Object writeReplace()
    • readObject

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