public final class PropertiesList extends Object
In GraphQL is have some issues managing properties (String => Object) maps. Having created
PropertiesMap is seemed obvious to create a list equivalent. Whilst a regular list will
work we define our own list here which allows control of serialisations etc. It also provides a
single type for GraphQL extensions.
Developers should use this in GraphQL 'dtos' wherever they'd normally wish to use a List%lt; Pair<String,Object> > type of construct. Or more likely where they'd really want an GraphQL to offer an ordered map as an array.
| Constructor and Description |
|---|
PropertiesList() |
PropertiesList(Collection<Property> list) |
PropertiesList(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Property property) |
void |
add(String key,
Object value) |
List<Property> |
asList() |
boolean |
equals(Object obj) |
reactor.core.publisher.Flux<Property> |
flux() |
int |
hashCode() |
boolean |
isEmpty() |
Stream<Property> |
stream() |
public PropertiesList()
public PropertiesList(Collection<Property> list)
Copyright © 2017–2018 Committed. All rights reserved.