Interface Appendable<T>

All Known Implementing Classes:
BaseList, BaseResourceList, FileList, LinkedObjectList, MessageList, ObjectList, ResourceList, Stack, StringList, ValidationIssues
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Appendable<T>
An object, often a collection or related type, to which objects can be appended. Provides default implementations for appending values from objects that implement Iterable or Iterator. Note that all Java collections are Iterable, so they can be appended with appendAll(Iterable)
Author:
jonathanl (shibo)
  • Method Details

    • append

      Appendable<T> append(T value)
      Adds the given value
      Returns:
      Self reference for chaining of append calls
    • appendAll

      default Appendable<T> appendAll(Iterator<? extends T> values)
      Parameters:
      values - A sequence of values to add
    • appendAll

      default Appendable<T> appendAll(Iterable<? extends T> values)
      Parameters:
      values - A sequence of values to add