public class GraphqlTypeComparators
extends java.lang.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(java.util.Collection<T> types)
This sorts the list of
GraphQLType objects (by name) and allocates a new sorted
list back. |
public static <T extends GraphQLType> java.util.List<T> sortGraphQLTypes(java.util.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> java.util.Comparator<? super GraphQLType> graphQLTypeComparator()
GraphQLType
objects by ascending nameT
- the type of typeGraphQLType
objects by ascending name