public class NumberHelper extends Object
Modifier and Type | Field and Description |
---|---|
BiFunction<Number,Number,Number> |
add |
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 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
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.