Interface ElementSink

All Known Implementing Classes:
ColumnVerticalList, ElementList, HorizontalList, VerticalList

public interface ElementSink
Receives Element objects one at a time.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add one Element to the receiver.
    static <T extends Element>
    ElementSink
    listSink(List<T> list, Class<T> elementClass)
    Convenience method for making a sink that writes to a list.
  • Method Details

    • addElement

      void addElement(Element element)
      Add one Element to the receiver.
    • listSink

      static <T extends Element> ElementSink listSink(List<T> list, Class<T> elementClass)
      Convenience method for making a sink that writes to a list.
      Parameters:
      list - the list to write elements to.
      elementClass - the class of the elements being put into the list.