public final class NumberHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Number n1,
Number n2)
Compare the two numbers and taking care of null values
|
static long[] |
getRangeOfNumber(long number,
long rangeSize)
Returns an array containing the start and the end of the range the provided number is in.
|
public static boolean equals(Number n1, Number n2)
n1 - number onen2 - number twopublic static long[] getRangeOfNumber(long number,
long rangeSize)
number - the number whose range is searchedrangeSize - the size of the rangesCopyright © 2019 Communote team. All rights reserved.