public class NumberUtils extends Object implements Serializable
| Constructor and Description |
|---|
NumberUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
add(T x,
T y)
Add two numeric values and return the sum in the smallest common type.
|
@NotNull public static <T extends Number> T add(T x, T y)
Supports Integer, Float and Double values
T - a numeric data typex - a numeric valuey - a numeric valueCopyright © 2016–2020 HeiGIT. All rights reserved.