public class GlbUtil extends Object
Constructor and Description |
---|
GlbUtil() |
Modifier and Type | Method and Description |
---|---|
static AnnotatedTypeMirror |
glbAll(Map<AnnotatedTypeMirror,Set<AnnotationMirror>> typeMirrors,
AnnotatedTypeFactory typeFactory)
Note: This method can be improved for wildcards and type variables.
|
static void |
sortForGlb(List<? extends AnnotatedTypeMirror> typeMirrors,
AnnotatedTypeFactory typeFactory)
Sort the list of type mirrors, placing supertypes first and subtypes last.
|
public static AnnotatedTypeMirror glbAll(Map<AnnotatedTypeMirror,Set<AnnotationMirror>> typeMirrors, AnnotatedTypeFactory typeFactory)
public static void sortForGlb(List<? extends AnnotatedTypeMirror> typeMirrors, AnnotatedTypeFactory typeFactory)
ArrayList<String>, List<String>, AbstractList<String>
becomes: List<String>, AbstractList<String>, ArrayList<String>