public class NumberUtils extends Object
| Constructor and Description | 
|---|
NumberUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static List<? extends Number> | 
castNumbers(TypeMirror type,
           List<? extends Number> numbers)
Converts a  
List<A> to a List<B>, where A and B are numeric types. | 
static Range | 
castRange(TypeMirror type,
         Range range)
Return a range that restricts the given range to the given type. 
 | 
public static List<? extends Number> castNumbers(TypeMirror type, List<? extends Number> numbers)
List<A> to a List<B>, where A and B are numeric types.public static Range castRange(TypeMirror type, Range range)
type - the type for the cast; the result will be within itrange - the original range; the result will be within it