Module swim.util
Package swim.util

Interface EntryBuilder<K,V,O>

All Superinterfaces:
Builder<Map.Entry<K,V>,O>, PairBuilder<K,V,O>
All Known Implementing Classes:
UriQueryBuilder

public interface EntryBuilder<K,V,O> extends PairBuilder<K,V,O>, Builder<Map.Entry<K,V>,O>
Type that accumulates map entries, and binds an output result of type O.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(Map.Entry<K,V> input)
    Adds a single entry to this builder, returning true if the state of the builder changed.
    boolean
    add(K key, V value)
    Adds an input pair to this builder, returning true if the state of the builder changed.
    boolean
    addAll(Collection<? extends Map.Entry<K,V>> inputs)
    Adds multiple entries to this builder, returning true if the state of the builder changed.
    boolean
    addAll(Map<? extends K,? extends V> inputs)
    Adds multiple entries 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.
      Specified by:
      add in interface PairBuilder<K,V,O>
    • add

      boolean add(Map.Entry<K,V> input)
      Adds a single entry to this builder, returning true if the state of the builder changed.
      Specified by:
      add in interface Builder<K,V>
    • addAll

      boolean addAll(Collection<? extends Map.Entry<K,V>> inputs)
      Adds multiple entries to this builder, returning true if the state of the builder changed.
      Specified by:
      addAll in interface Builder<K,V>
    • addAll

      boolean addAll(Map<? extends K,? extends V> inputs)
      Adds multiple entries to this builder, returning true if the state of the builder changed.
    • bind

      O bind()
      Returns the output result of this builder.
      Specified by:
      bind in interface Builder<K,V>
      Specified by:
      bind in interface PairBuilder<K,V,O>