public class NumberToolE extends NumberToolT
Constructor and Description |
---|
NumberToolE() |
Modifier and Type | Method and Description |
---|---|
static double |
limitIntoRange(double doubleIn,
double doubleBorderA,
double doubleBorderB)
Limits the given value doubleo a range.
|
static float |
limitIntoRange(float floatIn,
float floatBorderA,
float floatBorderB)
Limits the given value float into a range.
|
static int |
limitIntoRange(int intIn,
int intBorderA,
int intBorderB)
Limits the given value into a range.
|
static long |
limitIntoRange(long longIn,
long longBorderA,
long longBorderB)
Limits the given value long into a range.
|
static java.lang.String |
n2s(double in)
Generates a string from a "double" number.
|
static java.lang.String |
n2s(float in)
Generates a string from a "float" number.
|
static java.lang.String |
n2s(int in)
Generates a string from an "int" number.
|
static java.lang.String |
n2s(long in)
Generates a string from a "long" number.
|
static double |
o2d(java.lang.Object in,
double doubleNullReplacement)
Generates a "double" number from a string.
|
static java.lang.Double |
o2D(java.lang.Object in,
java.lang.Double dbLNullReplacement)
Generates a "Double" object from a string.
|
static float |
o2f(java.lang.Object in,
float floatNullReplacement)
Generates a "float" number from a string.
|
static java.lang.Float |
o2F(java.lang.Object in,
java.lang.Float flTNullReplacement)
Generates a "Float" object from a string.
|
static int |
o2i(java.lang.Object in,
int intNullReplacement)
Generates an "int" number from a string.
|
static java.lang.Integer |
o2I(java.lang.Object in,
java.lang.Integer itgNullReplacement)
Generates an "Integer" object from a string.
|
static long |
o2l(java.lang.Object in,
long longNullReplacement)
Generates a "long" number from a string.
|
static java.lang.Long |
o2L(java.lang.Object in,
java.lang.Long lnGNullReplacement)
Generates a "Long" object from a string.
|
static java.lang.Number |
o2N(java.lang.Object in,
java.lang.Number nuMNullReplacement)
Generates a "Number" from an object.
|
public static double limitIntoRange(double doubleIn, double doubleBorderA, double doubleBorderB)
doubleIn
- - Incoming number.doubleBorderA
- - One border.doubleBorderB
- - Another border.public static float limitIntoRange(float floatIn, float floatBorderA, float floatBorderB)
floatIn
- - Incoming number.floatBorderA
- - One border.floatBorderB
- - Another border.public static int limitIntoRange(int intIn, int intBorderA, int intBorderB)
intIn
- - Incoming number.intBorderA
- - One border.intBorderB
- - Another border.public static long limitIntoRange(long longIn, long longBorderA, long longBorderB)
longIn
- - Incoming number.longBorderA
- - One border.longBorderB
- - Another border.public static java.lang.String n2s(double in)
in
- - The incoming number.public static java.lang.String n2s(float in)
in
- - The incoming number.public static java.lang.String n2s(int in)
in
- - The incoming number.public static java.lang.String n2s(long in)
in
- - The incoming number.public static java.lang.Number o2N(java.lang.Object in, java.lang.Number nuMNullReplacement)
in
- - The incoming object to convert.nuMNullReplacement
- - The replacement for null.public static java.lang.Integer o2I(java.lang.Object in, java.lang.Integer itgNullReplacement)
in
- - The incoming number.itgNullReplacement
- - The replacement for null.public static java.lang.Long o2L(java.lang.Object in, java.lang.Long lnGNullReplacement)
in
- - The incoming number.lnGNullReplacement
- - The replacement for null.public static java.lang.Float o2F(java.lang.Object in, java.lang.Float flTNullReplacement)
in
- - The incoming number.flTNullReplacement
- - The replacement for null.public static java.lang.Double o2D(java.lang.Object in, java.lang.Double dbLNullReplacement)
in
- - The incoming number.dbLNullReplacement
- - The replacement for null.public static int o2i(java.lang.Object in, int intNullReplacement)
in
- - The incoming number.intNullReplacement
- - The replacement for null.public static long o2l(java.lang.Object in, long longNullReplacement)
in
- - The incoming number.longNullReplacement
- - The replacement for null.public static float o2f(java.lang.Object in, float floatNullReplacement)
in
- - The incoming number.floatNullReplacement
- - The replacement for null.public static double o2d(java.lang.Object in, double doubleNullReplacement)
in
- - The incoming number.doubleNullReplacement
- - The replacement for null.