public class MethodParamModelUtils extends Object
MethodParamModel
s.Constructor and Description |
---|
MethodParamModelUtils() |
Modifier and Type | Method and Description |
---|---|
static Annotation |
getAnnotation(MethodParamModel methodParamModel,
Class<? extends Annotation> annotationClass) |
static List<com.squareup.javapoet.TypeVariableName> |
getTypeVariables(MethodParamModel methodParam) |
static List<com.squareup.javapoet.TypeVariableName> |
getTypeVariables(com.squareup.javapoet.TypeName typeName) |
static boolean |
isAnnotatedWith(MethodParamModel methodParamModel,
Class<? extends Annotation> annotationClass) |
static boolean |
isAnnotatedWithExternalAnnotation(MethodParamModel methodParamModel,
com.squareup.javapoet.TypeName annotationType) |
static Comparator<MethodParamModel> |
shallowParamComparator()
Compares two
MethodParamModel s based on name and annotations only. |
public static boolean isAnnotatedWith(MethodParamModel methodParamModel, Class<? extends Annotation> annotationClass)
public static boolean isAnnotatedWithExternalAnnotation(MethodParamModel methodParamModel, com.squareup.javapoet.TypeName annotationType)
@Nullable public static Annotation getAnnotation(MethodParamModel methodParamModel, Class<? extends Annotation> annotationClass)
public static List<com.squareup.javapoet.TypeVariableName> getTypeVariables(MethodParamModel methodParam)
public static List<com.squareup.javapoet.TypeVariableName> getTypeVariables(com.squareup.javapoet.TypeName typeName)
public static Comparator<MethodParamModel> shallowParamComparator()
MethodParamModel
s based on name and annotations only.