| Modifier and Type | Class and Description |
|---|---|
static class |
N.ByteRangeStep |
static class |
N.F |
static class |
N.IntRangeStep |
static class |
N.LongRangeStep |
static class |
N.Num<T extends Number> |
static class |
N.Op |
static class |
N.RangeStep<T extends Number> |
static class |
N.ShortRangeStep |
static class |
N.Type |
| Modifier and Type | Field and Description |
|---|---|
static double |
E
The
double value that is closer than any other to
e, the base of the natural logarithms. |
static double |
PI
The
double value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter. |
| Modifier and Type | Method and Description |
|---|---|
static double |
abs(double a) |
static float |
abs(float a) |
static int |
abs(int a) |
static long |
abs(long a) |
static double |
cbrt(double a) |
static double |
ceil(double a) |
static boolean |
eq(Number a,
Number b) |
static double |
exp(double a) |
static double |
floor(double a) |
static boolean |
gt(Number a,
Number b) |
static boolean |
isNegative(BigDecimal number)
Check if a
BigDecimal is negative |
static boolean |
isNegative(BigInteger number)
Check if a
BigInteger is negative |
static boolean |
isNumeric(String s)
Check if a String `s` is numeric string
|
static boolean |
isPerfectSquare(long n)
Check if a long is a perfect square number.
|
static boolean |
isPositive(BigDecimal number)
Check if a
BigDecimal is positive |
static boolean |
isPositive(BigInteger number)
Check if a
BigInteger is positive |
static double |
log(double a) |
static double |
log10(double a) |
static boolean |
lt(Number a,
Number b) |
static double |
max(double a,
double b) |
static float |
max(float a,
float b) |
static int |
max(int a,
int b) |
static long |
max(long a,
long b) |
static double |
min(double a,
double b) |
static float |
min(float a,
float b) |
static int |
min(int a,
int b) |
static long |
min(long a,
long b) |
static N.Num |
num(Number number) |
static N.Num |
num(String s) |
static double |
pow(double a,
double b) |
static double |
randDouble() |
static double |
randDoubleWithSymbol() |
static float |
randFloat() |
static float |
randFloatWithSymbol() |
static int |
randInt() |
static int |
randInt(int max) |
static int |
randIntWithSymbol() |
static int |
randIntWithSymbol(int max) |
static long |
randLong() |
static long |
randLongWithSymbol() |
static long |
round(double a) |
static double |
round(double value,
int places) |
static int |
round(float a) |
static float |
round(float value,
int places) |
static int |
sign(Number number) |
static double |
sqrt(double a) |
public static final double E
double value that is closer than any other to
e, the base of the natural logarithms.public static final double PI
double value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter.public static double exp(double a)
public static double log(double a)
public static double log10(double a)
public static double sqrt(double a)
public static double cbrt(double a)
public static double ceil(double a)
public static double floor(double a)
public static double pow(double a,
double b)
public static int round(float a)
public static float round(float value,
int places)
public static long round(double a)
public static double round(double value,
int places)
public static final boolean isPerfectSquare(long n)
n - a numberpublic static boolean isNumeric(String s)
s - the stringpublic static boolean isNegative(BigDecimal number)
BigDecimal is negativenumber - the number to be testedpublic static boolean isNegative(BigInteger number)
BigInteger is negativenumber - the number to be testedpublic static boolean isPositive(BigDecimal number)
BigDecimal is positivenumber - the number to be testedpublic static boolean isPositive(BigInteger number)
BigInteger is positivenumber - the number to be testedpublic static int randInt()
Random.nextInt()public static int randIntWithSymbol()
public static int randInt(int max)
max - the max limit (exclusive) of the number generatedRandom.nextInt(int)public static int randIntWithSymbol(int max)
public static float randFloat()
public static float randFloatWithSymbol()
public static long randLong()
public static long randLongWithSymbol()
public static double randDouble()
Random.nextDouble()public static double randDoubleWithSymbol()
public static int abs(int a)
public static long abs(long a)
public static float abs(float a)
public static double abs(double a)
public static int max(int a,
int b)
public static long max(long a,
long b)
public static float max(float a,
float b)
public static double max(double a,
double b)
public static int min(int a,
int b)
public static long min(long a,
long b)
public static float min(float a,
float b)
public static double min(double a,
double b)
public static int sign(Number number)
Copyright © 2017. All Rights Reserved.