Package graphql.execution
Interface ResponseMapFactory
- All Known Implementing Classes:
DefaultResponseMapFactory
Allows to customize the concrete class
Map
implementation. For example, it could be possible to use
memory-efficient implementations, like eclipse-collections.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResponseMapFactory
The default implementation uses JDK'sLinkedHashMap
. -
Method Summary
-
Field Details
-
DEFAULT
The default implementation uses JDK'sLinkedHashMap
.
-
-
Method Details
-
createInsertionOrdered
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, ..., knvalues
- the values like v1, v2, ..., vn- Returns:
- a new or reused map instance with (k1,v1), (k2, v2), ... (kn, vn)
-