Class DefaultMapAdapter<K,V>

java.lang.Object
io.smallrye.graphql.execution.datafetcher.helper.DefaultMapAdapter<K,V>
Type Parameters:
K - Key
V - Value

public class DefaultMapAdapter<K,V> extends Object
The adapter to change map to Entry Set.Users can also supply their own adapter.
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • DefaultMapAdapter

      public DefaultMapAdapter()
  • Method Details

    • from

      public Map<K,V> from(Set<io.smallrye.graphql.api.Entry<K,V>> entries, io.smallrye.graphql.schema.model.Field field)
    • to

      public Set<io.smallrye.graphql.api.Entry<K,V>> to(Map<K,V> map, List<K> key, io.smallrye.graphql.schema.model.Field field)
    • getAdaptedField

      public io.smallrye.graphql.schema.model.Field getAdaptedField(io.smallrye.graphql.schema.model.Field original)