public class GraphqlTypeComparators extends Object
Constructor and Description |
---|
GraphqlTypeComparators() |
Modifier and Type | Method and Description |
---|---|
static <T extends GraphQLType> |
graphQLTypeComparator()
Returns a comparator that compares
GraphQLType objects by ascending name |
static <T extends GraphQLType> |
sortGraphQLTypes(Collection<T> types)
This sorts the list of
GraphQLType objects (by name) and allocates a new sorted
list back. |
public static <T extends GraphQLType> List<T> sortGraphQLTypes(Collection<T> types)
GraphQLType
objects (by name) and allocates a new sorted
list back.T
- the type of typetypes
- the types to sortpublic static <T extends GraphQLType> Comparator<? super GraphQLType> graphQLTypeComparator()
GraphQLType
objects by ascending nameT
- the type of typeGraphQLType
objects by ascending nameCopyright © 2019. All rights reserved.