Interface ResponseMapFactory

All Known Implementing Classes:
DefaultResponseMapFactory

@ExperimentalApi @PublicSpi public interface ResponseMapFactory
Allows to customize the concrete class Map implementation. For example, it could be possible to use memory-efficient implementations, like eclipse-collections.
  • Field Details

  • Method Details

    • createInsertionOrdered

      Map<String,Object> createInsertionOrdered(List<String> keys, List<Object> values)
      The general contract is that the resulting map keeps the insertion orders of keys. Values are nullable but keys are not. Implementations are free to create or to reuse map instances.
      Parameters:
      keys - the keys like k1, k2, ..., kn
      values - the values like v1, v2, ..., vn
      Returns:
      a new or reused map instance with (k1,v1), (k2, v2), ... (kn, vn)