Package graphql.execution
Class DefaultResponseMapFactory
java.lang.Object
graphql.execution.DefaultResponseMapFactory
- All Implemented Interfaces:
ResponseMapFactory
Implements the contract of
ResponseMapFactory
with LinkedHashMap
.
This is the default of graphql-java since a long time and changing it could cause breaking changes.-
Field Summary
Fields inherited from interface graphql.execution.ResponseMapFactory
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultResponseMapFactory
public DefaultResponseMapFactory()
-
-
Method Details
-
createInsertionOrdered
Description copied from interface:ResponseMapFactory
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.- Specified by:
createInsertionOrdered
in interfaceResponseMapFactory
- 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)
-