public final class NumberHelper extends Object
Modifier and Type | Field and Description |
---|---|
BiFunction<Number,Number,Number> |
add |
BiFunction<Number,Number,Integer> |
cmp |
BiFunction<Number,Number,Number> |
div |
BiFunction<Number,Number,Number> |
max |
BiFunction<Number,Number,Number> |
min |
BiFunction<Number,Number,Number> |
mul |
BiFunction<Number,Number,Number> |
sub |
Modifier and Type | Method and Description |
---|---|
static Number |
add(Number a,
Number b) |
static Integer |
compare(Number a,
Number b) |
static Number |
div(Number a,
Number b) |
static Number |
div(Number a,
Number b,
boolean forceFloatingPoint) |
static Class<? extends Number> |
getHighestCommonNumberClass(boolean forceFloatingPoint,
Number... numbers) |
static Class<? extends Number> |
getHighestCommonNumberClass(Number... numbers) |
static Number |
max(Number a,
Number b) |
static Number |
min(Number a,
Number b) |
static Number |
mul(Number a,
Number b) |
static Number |
sub(Number a,
Number b) |
public final BiFunction<Number,Number,Number> add
public final BiFunction<Number,Number,Number> sub
public final BiFunction<Number,Number,Number> mul
public final BiFunction<Number,Number,Number> div
public final BiFunction<Number,Number,Number> min
public final BiFunction<Number,Number,Number> max
public final BiFunction<Number,Number,Integer> cmp
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.