Module swim.util
Package swim.util

Interface Builder<I,​O>

  • All Known Subinterfaces:
    EntryBuilder<K,​V,​O>

    public interface Builder<I,​O>
    Type that accumulates input values of type I, and binds an output result of type O.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean add​(I input)
      Adds a single input value to this builder, returning true if the state of the builder changed.
      boolean addAll​(Collection<? extends I> inputs)
      Adds multiple input values to this builder, returning true if the state of the builder changed.
      O bind()
      Returns the output result of this builder.
    • Method Detail

      • add

        boolean add​(I input)
        Adds a single input value to this builder, returning true if the state of the builder changed.
      • addAll

        boolean addAll​(Collection<? extends I> inputs)
        Adds multiple input values to this builder, returning true if the state of the builder changed.
      • bind

        O bind()
        Returns the output result of this builder.