public class ValueCheckerUtils
extends java.lang.Object
| Constructor and Description | 
|---|
ValueCheckerUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.Class<?> | 
getArrayClassObject(javax.lang.model.type.TypeMirror componentType)  | 
static java.lang.Class<?> | 
getClassFromType(javax.lang.model.type.TypeMirror type)  | 
static java.util.List<java.lang.Integer> | 
getLengthsForStringValues(java.util.List<java.lang.String> values)
Gets a list of lengths for a list of string values. 
 | 
static Range | 
getRangeFromValues(java.util.List<? extends java.lang.Number> values)
Get the minimum and maximum of a list and return a range bounded by them. 
 | 
static java.util.List<?> | 
getValuesCastedToType(javax.lang.model.element.AnnotationMirror anno,
                     javax.lang.model.type.TypeMirror castTo)
Get a list of values of annotation, and then cast them to a given type 
 | 
static <T> java.util.List<T> | 
getValuesFromRange(Range range,
                  java.lang.Class<T> expectedType)
Get all possible values from the given type and cast them into a boxed primitive type. 
 | 
static <T extends java.lang.Comparable<T>> | 
removeDuplicates(java.util.List<T> values)  | 
public static java.lang.Class<?> getClassFromType(javax.lang.model.type.TypeMirror type)
public static java.lang.Class<?> getArrayClassObject(javax.lang.model.type.TypeMirror componentType)
public static java.util.List<?> getValuesCastedToType(javax.lang.model.element.AnnotationMirror anno,
                                                      javax.lang.model.type.TypeMirror castTo)
anno - the annotation that contains valuescastTo - the type that is casted topublic static Range getRangeFromValues(java.util.List<? extends java.lang.Number> values)
public static <T> java.util.List<T> getValuesFromRange(Range range, java.lang.Class<T> expectedType)
expectedType must be a boxed type, not a primitive type, because primitive types
 cannot be stored in a list.
range - the given rangeexpectedType - the expected typepublic static <T extends java.lang.Comparable<T>> java.util.List<T> removeDuplicates(java.util.List<T> values)
public static java.util.List<java.lang.Integer> getLengthsForStringValues(java.util.List<java.lang.String> values)
values - list of string valuesvalues