|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.op4j.functions.FnNumber
public final class FnNumber
Method Summary | |
---|---|
static Function<Number,Boolean> |
between(byte min,
byte max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(double min,
double max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(float min,
float max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(int min,
int max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(long min,
long max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(Number min,
Number max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
between(short min,
short max)
Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >>= 0 && target.compareTo(max) <= 0. |
static Function<Number,Boolean> |
eq(byte object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(double object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(float object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(int object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(long object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(Number object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eq(short object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method. |
static Function<Number,Boolean> |
eqValue(byte object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(double object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(float object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(int object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(long object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(Number object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValue(short object)
Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
eqValueBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. |
static Function<Number,Boolean> |
greaterOrEqTo(byte object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(double object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(float object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(int object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(long object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(Number object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqTo(short object)
Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterOrEqToBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. |
static Function<Number,Boolean> |
greaterThan(byte object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(double object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(float object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(int object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(long object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(Number object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThan(short object)
Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
greaterThanBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. |
static Function<Number,Boolean> |
isNotNull()
Determines whether the target object is null or not. |
static Function<Number,Boolean> |
isNull()
Determines whether the target object is null or not. |
static Function<Number,Boolean> |
lessOrEqTo(byte object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(double object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(float object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(int object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(long object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(Number object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqTo(short object)
Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessOrEqToBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. |
static Function<Number,Boolean> |
lessThan(byte object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(double object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(float object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(int object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(long object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(Number object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThan(short object)
Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
lessThanBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. |
static Function<Number,Boolean> |
notEq(byte object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(double object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(float object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(int object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(long object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(Number object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEq(short object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method. |
static Function<Number,Boolean> |
notEqValue(byte object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(double object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(float object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(int object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(long object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(Number object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValue(short object)
Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<Number,Boolean> |
notEqValueBy(IFunction<Number,?> by,
short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) ! |
static Function<BigDecimal,BigDecimal> |
roundBigDecimal(int scale,
RoundingMode roundingMode)
It rounds the target object with the specified scale and rounding mode |
static Function<Double,Double> |
roundDouble(int scale,
RoundingMode roundingMode)
It rounds the target object with the specified scale and rounding mode |
static Function<Float,Float> |
roundFloat(int scale,
RoundingMode roundingMode)
It rounds the target with the specified scale and rounding mode |
static Function<Number,BigDecimal> |
toBigDecimal()
It converts the input into a BigDecimal
|
static Function<Number,BigDecimal> |
toBigDecimal(int scale,
RoundingMode roundingMode)
It converts the input into a BigDecimal using the given scale and RoundingMode
|
static Function<Number,BigInteger> |
toBigInteger()
It converts the input into a BigInteger
|
static Function<Number,BigInteger> |
toBigInteger(RoundingMode roundingMode)
It converts the input into a BigInteger using the given RoundingMode
|
static Function<Number,Boolean> |
toBoolean()
It converts the input into a Boolean
|
static Function<Number,Byte> |
toByte()
It converts the input into a Byte
|
static Function<Number,Byte> |
toByte(RoundingMode roundingMode)
It converts the input into a Byte using the given RoundingMode
|
static Function<Number,String> |
toCurrencyStr()
It returns the String representation of the target as a currency in the
default Locale
|
static Function<Number,String> |
toCurrencyStr(boolean groupingUsed)
It returns the String representation of the target as a currency in the
default Locale
|
static Function<Number,String> |
toCurrencyStr(Locale locale)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<Number,String> |
toCurrencyStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<Number,String> |
toCurrencyStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given Locale . |
static Function<Number,String> |
toCurrencyStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target as a currency in the
given Locale taking into account the given parameters. |
static Function<Number,String> |
toCurrencyStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target as a currency in the
given Locale taking into account the given parameters. |
static Function<Number,String> |
toCurrencyStr(String locale)
It returns the String representation of the target as a currency in the
given locale
|
static Function<Number,String> |
toCurrencyStr(String locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given locale
|
static Function<Number,String> |
toCurrencyStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given locale taking into account the given parameters. |
static Function<Number,String> |
toCurrencyStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target as a currency in the
given locale taking into account the given parameters. |
static Function<Number,String> |
toCurrencyStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target as a currency in the
given locale taking into account the given parameters. |
static Function<Number,Double> |
toDouble()
It converts the target into a Double
|
static Function<Number,Double> |
toDouble(int scale,
RoundingMode roundingMode)
It converts the input into a Double using the given scale and RoundingMode
|
static Function<Number,Float> |
toFloat()
It converts the input into a Float
|
static Function<Number,Float> |
toFloat(int scale,
RoundingMode roundingMode)
It converts the target object into a Float using the given scale and RoundingMode
|
static Function<Number,Integer> |
toInteger()
It converts the target into an Integer
|
static Function<Number,Integer> |
toInteger(RoundingMode roundingMode)
It converts the input into an Integer using the given RoundingMode
|
static Function<Number,Long> |
toLong()
It converts the input into a Long
|
static Function<Number,Long> |
toLong(RoundingMode roundingMode)
It converts the input into a Long using the given RoundingMode
|
static Function<Number,String> |
toPercentStr()
A String representing a percentage is created from the target number. |
static Function<Number,String> |
toPercentStr(boolean groupingUsed)
A String representing a percentage is created from the target number
either using grouping or not depending on the given parameter. |
static Function<Number,String> |
toPercentStr(Locale locale)
A String representing a percentage is created from the target number
in the given Locale
|
static Function<Number,String> |
toPercentStr(Locale locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given Locale . |
static Function<Number,String> |
toPercentStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given Locale . |
static Function<Number,String> |
toPercentStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
A String representing a percentage is created from the target number
in the given locale and using the other given parameters as well. |
static Function<Number,String> |
toPercentStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
A String representing a percentage is created from the target number
in the given Locale and using the other given parameters as well. |
static Function<Number,String> |
toPercentStr(String locale)
A String representing a percentage is created from the target number
in the given locale
|
static Function<Number,String> |
toPercentStr(String locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given locale. |
static Function<Number,String> |
toPercentStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given locale. |
static Function<Number,String> |
toPercentStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
A String representing a percentage is created from the target number
in the given locale and using the other given parameters as well. |
static Function<Number,String> |
toPercentStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
A String representing a percentage is created from the target number
in the given locale and using the other given parameters as well. |
static Function<Number,Short> |
toShort()
It converts the input into a Short
|
static Function<Number,Short> |
toShort(RoundingMode roundingMode)
It converts the target into a Short using the given RoundingMode
|
static Function<Number,String> |
toStr()
It returns the String representation of the input number
|
static Function<Number,String> |
toStr(boolean groupingUsed)
It returns the String representation of the input number either
using or not using grouping
|
static Function<Number,String> |
toStr(Locale locale)
It returns the String representation of the target number in the given Locale
|
static Function<Number,String> |
toStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target number in the given Locale . |
static Function<Number,String> |
toStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
It returns the String representation of the target number in the given Locale . |
static Function<Number,String> |
toStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target number in the given Locale . |
static Function<Number,String> |
toStr(Locale locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target number in the given Locale . |
static Function<Number,String> |
toStr(String locale)
It returns the String representation of the target number in the given locale
|
static Function<Number,String> |
toStr(String locale,
boolean groupingUsed)
It returns the String representation of the target number in the given locale. |
static Function<Number,String> |
toStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed)
It returns the String representation of the target number in the given locale. |
static Function<Number,String> |
toStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
boolean groupingUsed,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target number in the given locale. |
static Function<Number,String> |
toStr(String locale,
int minIntegerDigits,
int minFractionDigits,
int maxFractionDigits,
char groupingSeparator,
char decimalSeparator,
boolean decimalSeparatorAlwaysShown)
It returns the String representation of the target number in the given locale. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Function<Number,BigDecimal> toBigDecimal()
It converts the input into a BigDecimal
BigDecimal
public static final Function<Number,BigDecimal> toBigDecimal(int scale, RoundingMode roundingMode)
It converts the input into a BigDecimal
using the given scale and RoundingMode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
BigDecimal
public static final Function<Number,BigInteger> toBigInteger()
It converts the input into a BigInteger
BigInteger
public static final Function<Number,BigInteger> toBigInteger(RoundingMode roundingMode)
It converts the input into a BigInteger
using the given RoundingMode
roundingMode
- the RoundingMode
to round the input with
BigInteger
public static final Function<Number,Double> toDouble()
It converts the target into a Double
Double
public static final Function<Number,Double> toDouble(int scale, RoundingMode roundingMode)
It converts the input into a Double
using the given scale and RoundingMode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
Double
public static final Function<Number,Float> toFloat()
It converts the input into a Float
Float
public static final Function<Number,Float> toFloat(int scale, RoundingMode roundingMode)
It converts the target object into a Float
using the given scale and RoundingMode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
Float
public static final Function<Number,Long> toLong()
It converts the input into a Long
Long
public static final Function<Number,Long> toLong(RoundingMode roundingMode)
It converts the input into a Long
using the given RoundingMode
roundingMode
- the RoundingMode
to round the input with
Long
public static final Function<Number,Integer> toInteger()
It converts the target into an Integer
Integer
public static final Function<Number,Integer> toInteger(RoundingMode roundingMode)
It converts the input into an Integer
using the given RoundingMode
roundingMode
- the RoundingMode
to round the input with
Integer
public static final Function<Number,Short> toShort()
It converts the input into a Short
Short
public static final Function<Number,Short> toShort(RoundingMode roundingMode)
It converts the target into a Short
using the given RoundingMode
roundingMode
- the RoundingMode
to round the input with
Short
public static final Function<Number,Byte> toByte()
It converts the input into a Byte
Byte
public static final Function<Number,Byte> toByte(RoundingMode roundingMode)
It converts the input into a Byte
using the given RoundingMode
roundingMode
- the RoundingMode
to round the input with
Byte
public static final Function<Number,Boolean> toBoolean()
It converts the input into a Boolean
Boolean
public static final Function<BigDecimal,BigDecimal> roundBigDecimal(int scale, RoundingMode roundingMode)
It rounds the target object with the specified scale and rounding mode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
BigDecimal
public static final Function<Float,Float> roundFloat(int scale, RoundingMode roundingMode)
It rounds the target with the specified scale and rounding mode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
Float
public static final Function<Double,Double> roundDouble(int scale, RoundingMode roundingMode)
It rounds the target object with the specified scale and rounding mode
scale
- the scale to be usedroundingMode
- the RoundingMode
to round the input with
Double
public static final Function<Number,String> toStr()
It returns the String
representation of the input number
String
representation of the inputpublic static final Function<Number,String> toStr(boolean groupingUsed)
It returns the String
representation of the input number either
using or not using grouping
groupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Number,String> toStr(Locale locale)
It returns the String
representation of the target number in the given Locale
locale
- the Locale
to be used
String
representation of the inputpublic static final Function<Number,String> toStr(String locale)
It returns the String
representation of the target number in the given locale
locale
- the locale to be used
String
representation of the inputpublic static final Function<Number,String> toStr(Locale locale, boolean groupingUsed)
It returns the String
representation of the target number in the given Locale
. Grouping
will be used depending on the value of the groupingUsed parameter
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Number,String> toStr(String locale, boolean groupingUsed)
It returns the String
representation of the target number in the given locale. Grouping
will be used depending on the value of the groupingUsed parameter
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Number,String> toStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
It returns the String
representation of the target number in the given Locale
.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH, 3, 2, 2, true) would return 010.00 if target number is 10
toStr(Locale.ENGLISH, 2, 2, 4, true) would return 00.00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- groupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Number,String> toStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
It returns the String
representation of the target number in the given locale.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH.toString(), 3, 2, 2, true) would return 010.00 if target number is 10
toStr(Locale.ENGLISH.toString(), 2, 2, 4, true) would return 00.00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Number,String> toStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target number in the given Locale
.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH, 3, 2, 2, ',', '.', true) would return 1,000.00 if target number is 1000
toStr(Locale.ENGLISH, 2, 2, 4, ',', '.', true) would return 00.00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the inputpublic static final Function<Number,String> toStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target number in the given Locale
.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH, 3, 2, 2, true, ',', true) would return 1,000,00 if target number is 1000
toStr(Locale.ENGLISH, 2, 2, 4, true, ',', true) would return 00,00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the inputpublic static final Function<Number,String> toStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target number in the given locale.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH.toString(), 3, 2, 2, ',', '.', true) would return 1,000.00 if target number is 1000
toStr(Locale.ENGLISH.toString(), 2, 2, 4, ',', '.', true) would return 00.00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the inputpublic static final Function<Number,String> toStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target number in the given locale.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toStr(Locale.ENGLISH.toString(), 3, 2, 2, true, ',', true) would return 1,000,00 if target number is 1000
toStr(Locale.ENGLISH.toString(), 2, 2, 4, true, ',', true) would return 00,00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the inputpublic static final Function<Number,String> toCurrencyStr()
It returns the String
representation of the target as a currency in the
default Locale
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(boolean groupingUsed)
It returns the String
representation of the target as a currency in the
default Locale
groupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(Locale locale)
It returns the String
representation of the target as a currency in the
given Locale
locale
- the Locale
to be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(String locale)
It returns the String
representation of the target as a currency in the
given locale
locale
- the locale to be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(Locale locale, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given Locale
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(String locale, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given locale
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given Locale
.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK, 3, 2, 2, true) would return £1,000.00 if target number is 1000
toCurrencyStr(Locale.UK, 2, 2, 4, true) would return £00.00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given locale taking into account the given parameters.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK.toString(), 3, 2, 2, true) would return £1,000.00 if target number is 1000
toCurrencyStr(Locale.UK.toString(), 2, 2, 4, true) would return £00.00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target as a currency in the
given Locale
taking into account the given parameters.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK, 3, 2, 2, ',', ',', true) would return £1,000,00 if target number is 1000
toCurrencyStr(Locale.UK, 2, 2, 4, ',', ',', true) would return £00,00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target as a currency in the
given Locale
taking into account the given parameters.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK.toString(), 3, 2, 2, ',', ',', true) would return £1,000,00 if target number is 1000
toCurrencyStr(Locale.UK.toString(), 2, 2, 4, ',', ',', true) would return £00,00 if target number is 0
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target as a currency in the
given locale taking into account the given parameters.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK, 3, 2, 2, ',', ',', true) would return £1,000,00 if target number is 1000
toCurrencyStr(Locale.UK, 2, 2, 4, ',', ',', true) would return £00,00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the input as a currencypublic static final Function<Number,String> toCurrencyStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
It returns the String
representation of the target as a currency in the
given locale taking into account the given parameters.
If necessary, it will add leading or trailing zeros to the string based on the given parameters. So,
toCurrencyStr(Locale.UK.toString(), 3, 2, 2, ',', ',', true) would return £1,000,00 if target number is 1000
toCurrencyStr(Locale.UK.toString(), 2, 2, 4, ',', ',', true) would return £00,00 if target number is 0
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
String
representation of the input as a currencypublic static final Function<Number,String> toPercentStr()
A String
representing a percentage is created from the target number.
public static final Function<Number,String> toPercentStr(boolean groupingUsed)
A String
representing a percentage is created from the target number
either using grouping or not depending on the given parameter. So,
toPercentStr(true) would return 100,000% if target number is 1000
toPercentStr(false) would return 100000% if target number is 1000
groupingUsed
- whether or not grouping will be used
public static final Function<Number,String> toPercentStr(Locale locale)
A String
representing a percentage is created from the target number
in the given Locale
locale
- the Locale
to be used
public static final Function<Number,String> toPercentStr(String locale)
A String
representing a percentage is created from the target number
in the given locale
locale
- the locale to be used
public static final Function<Number,String> toPercentStr(Locale locale, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given Locale
. Grouping will be used depending on the value of the
groupingUsed parameter.
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
public static final Function<Number,String> toPercentStr(String locale, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given locale. Grouping will be used depending on the value of the
groupingUsed parameter.
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
public static final Function<Number,String> toPercentStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given Locale
.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be used
public static final Function<Number,String> toPercentStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given locale.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be used
public static final Function<Number,String> toPercentStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
A String
representing a percentage is created from the target number
in the given Locale
and using the other given parameters as well.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the Locale
to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
public static final Function<Number,String> toPercentStr(Locale locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
A String
representing a percentage is created from the target number
in the given locale and using the other given parameters as well.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
public static final Function<Number,String> toPercentStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, char groupingSeparator, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
A String
representing a percentage is created from the target number
in the given locale and using the other given parameters as well.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingSeparator
- grouping separator to be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
public static final Function<Number,String> toPercentStr(String locale, int minIntegerDigits, int minFractionDigits, int maxFractionDigits, boolean groupingUsed, char decimalSeparator, boolean decimalSeparatorAlwaysShown)
A String
representing a percentage is created from the target number
in the given locale and using the other given parameters as well.
If necessary, it will add leading or trailing zeros to the string
based on the given parameters.
locale
- the locale to be usedminIntegerDigits
- minimum number of integer digits so, if not enough in the
target number, 0's will be added to the left of the integer partminFractionDigits
- minimum number of fraction digits so, if not enough in the
target number, 0's will be added to the right of the decimal partmaxFractionDigits
- maximum number of fraction digitsgroupingUsed
- whether or not grouping will be useddecimalSeparator
- decimal separator to be useddecimalSeparatorAlwaysShown
- whether decimal separator should be shown
even if the decimal part is zero or not
public static final Function<Number,Boolean> eq(Number object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(float object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(double object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(byte object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(short object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(int object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eq(long object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(Number object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(float object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(double object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(byte object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(short object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(int object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValue(long object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(Number object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(float object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(double object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(byte object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(short object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(int object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEq(long object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(Number object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(float object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(double object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(byte object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(short object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(int object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValue(long object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(Number object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(float object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(double object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(byte object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(short object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(int object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThan(long object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(Number object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(float object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(double object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(byte object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(short object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(int object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqTo(long object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(Number object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(float object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(double object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(byte object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(short object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(int object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThan(long object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(Number object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(float object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(double object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(byte object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(short object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(int object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqTo(long object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> eqValueBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> notEqValueBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessThanBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> lessOrEqToBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterThanBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, Number object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, float object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, double object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, byte object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, short object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, int object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> greaterOrEqToBy(IFunction<Number,?> by, long object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Number,Boolean> isNull()
Determines whether the target object is null or not.
public static final Function<Number,Boolean> isNotNull()
Determines whether the target object is null or not.
public static final Function<Number,Boolean> between(Number min, Number max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(int min, int max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(short min, short max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >>= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(byte min, byte max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(long min, long max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(double min, double max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Number,Boolean> between(float min, float max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |