org.op4j.functions
Class FnNumber

Object
  extended by org.op4j.functions.FnNumber

public final class FnNumber
extends Object

Since:
1.0
Author:
Daniel Fernández, Soraya Sánchez

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

toBigDecimal

public static final Function<Number,BigDecimal> toBigDecimal()

It converts the input into a BigDecimal

Returns:
the BigDecimal

toBigDecimal

public static final Function<Number,BigDecimal> toBigDecimal(int scale,
                                                             RoundingMode roundingMode)

It converts the input into a BigDecimal using the given scale and RoundingMode

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the BigDecimal

toBigInteger

public static final Function<Number,BigInteger> toBigInteger()

It converts the input into a BigInteger

Returns:
the BigInteger

toBigInteger

public static final Function<Number,BigInteger> toBigInteger(RoundingMode roundingMode)

It converts the input into a BigInteger using the given RoundingMode

Parameters:
roundingMode - the RoundingMode to round the input with
Returns:
the BigInteger

toDouble

public static final Function<Number,Double> toDouble()

It converts the target into a Double

Returns:
the Double

toDouble

public static final Function<Number,Double> toDouble(int scale,
                                                     RoundingMode roundingMode)

It converts the input into a Double using the given scale and RoundingMode

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the Double

toFloat

public static final Function<Number,Float> toFloat()

It converts the input into a Float

Returns:
the Float

toFloat

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

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the Float

toLong

public static final Function<Number,Long> toLong()

It converts the input into a Long

Returns:
the Long

toLong

public static final Function<Number,Long> toLong(RoundingMode roundingMode)

It converts the input into a Long using the given RoundingMode

Parameters:
roundingMode - the RoundingMode to round the input with
Returns:
the Long

toInteger

public static final Function<Number,Integer> toInteger()

It converts the target into an Integer

Returns:
the Integer

toInteger

public static final Function<Number,Integer> toInteger(RoundingMode roundingMode)

It converts the input into an Integer using the given RoundingMode

Parameters:
roundingMode - the RoundingMode to round the input with
Returns:
the Integer

toShort

public static final Function<Number,Short> toShort()

It converts the input into a Short

Returns:
the Short

toShort

public static final Function<Number,Short> toShort(RoundingMode roundingMode)

It converts the target into a Short using the given RoundingMode

Parameters:
roundingMode - the RoundingMode to round the input with
Returns:
the Short

toByte

public static final Function<Number,Byte> toByte()

It converts the input into a Byte

Returns:
the Byte

toByte

public static final Function<Number,Byte> toByte(RoundingMode roundingMode)

It converts the input into a Byte using the given RoundingMode

Parameters:
roundingMode - the RoundingMode to round the input with
Returns:
the Byte

toBoolean

public static final Function<Number,Boolean> toBoolean()

It converts the input into a Boolean

Returns:
the Boolean

roundBigDecimal

public static final Function<BigDecimal,BigDecimal> roundBigDecimal(int scale,
                                                                    RoundingMode roundingMode)

It rounds the target object with the specified scale and rounding mode

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the BigDecimal

roundFloat

public static final Function<Float,Float> roundFloat(int scale,
                                                     RoundingMode roundingMode)

It rounds the target with the specified scale and rounding mode

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the Float

roundDouble

public static final Function<Double,Double> roundDouble(int scale,
                                                        RoundingMode roundingMode)

It rounds the target object with the specified scale and rounding mode

Parameters:
scale - the scale to be used
roundingMode - the RoundingMode to round the input with
Returns:
the Double

toStr

public static final Function<Number,String> toStr()

It returns the String representation of the input number

Returns:
the String representation of the input

toStr

public static final Function<Number,String> toStr(boolean groupingUsed)

It returns the String representation of the input number either using or not using grouping

Parameters:
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input

toStr

public static final Function<Number,String> toStr(Locale locale)

It returns the String representation of the target number in the given Locale

Parameters:
locale - the Locale to be used
Returns:
the String representation of the input

toStr

public static final Function<Number,String> toStr(String locale)

It returns the String representation of the target number in the given locale

Parameters:
locale - the locale to be used
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the Locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits -
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input

toStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input

toCurrencyStr

public static final Function<Number,String> toCurrencyStr()

It returns the String representation of the target as a currency in the default Locale

Returns:
the String representation of the input as a currency

toCurrencyStr

public static final Function<Number,String> toCurrencyStr(boolean groupingUsed)

It returns the String representation of the target as a currency in the default Locale

Parameters:
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public static final Function<Number,String> toCurrencyStr(Locale locale)

It returns the String representation of the target as a currency in the given Locale

Parameters:
locale - the Locale to be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public static final Function<Number,String> toCurrencyStr(String locale)

It returns the String representation of the target as a currency in the given locale

Parameters:
locale - the locale to be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the Locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input as a currency

toCurrencyStr

public 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

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the String representation of the input as a currency

toPercentStr

public static final Function<Number,String> toPercentStr()

A String representing a percentage is created from the target number.

Returns:
the string representation of the input number as a percentage

toPercentStr

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

Parameters:
groupingUsed - whether or not grouping will be used
Returns:
the string representation of the input number as a percentage

toPercentStr

public static final Function<Number,String> toPercentStr(Locale locale)

A String representing a percentage is created from the target number in the given Locale

Parameters:
locale - the Locale to be used
Returns:
the string representation of the input number as a percentage

toPercentStr

public static final Function<Number,String> toPercentStr(String locale)

A String representing a percentage is created from the target number in the given locale

Parameters:
locale - the locale to be used
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the Locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the locale to be used
groupingUsed - whether or not grouping will be used
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the Locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingSeparator - grouping separator to be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the string representation of the input number as a percentage

toPercentStr

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.

Parameters:
locale - the locale to be used
minIntegerDigits - minimum number of integer digits so, if not enough in the target number, 0's will be added to the left of the integer part
minFractionDigits - minimum number of fraction digits so, if not enough in the target number, 0's will be added to the right of the decimal part
maxFractionDigits - maximum number of fraction digits
groupingUsed - whether or not grouping will be used
decimalSeparator - decimal separator to be used
decimalSeparatorAlwaysShown - whether decimal separator should be shown even if the decimal part is zero or not
Returns:
the string representation of the input number as a percentage

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

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.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

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.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

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.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

isNull

public static final Function<Number,Boolean> isNull()

Determines whether the target object is null or not.

Returns:
true if the target object is null, false if not.

isNotNull

public static final Function<Number,Boolean> isNotNull()

Determines whether the target object is null or not.

Returns:
false if the target object is null, true if not.

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

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.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)


Copyright © 2012 The OP4J team. All Rights Reserved.