Module swim.util
Package swim.util

Interface PairBuilder<K,V,O>

All Known Subinterfaces:
EntryBuilder<K,V,O>
All Known Implementing Classes:
AbstractRecordOutlet, AbstractRecordStreamlet, DownlinkRecord, DownlinkStreamlet, ListDownlinkRecord, MapDownlinkRecord, Record, RecordModel, RecordScope, RecordStreamlet, UriQueryBuilder, ValueDownlinkRecord

public interface PairBuilder<K,V,O>
Type that accumulates pairs of input values, and binds an output result of type O.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(K key, V value)
    Adds an input pair to this builder, returning true if the state of the builder changed.
    Returns the output result of this builder.
  • Method Details

    • add

      boolean add(K key, V value)
      Adds an input pair to this builder, returning true if the state of the builder changed.
    • bind

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