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) |
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)