|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.FnFloat
public final class FnFloat
Method Summary | |
---|---|
static Function<Float,Float> |
abs()
It returns the absolute value of the input |
static Function<Float,Float> |
add(byte add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(double add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(float add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(int add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(long add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(Number add)
It adds the given number to the target and returns the result |
static Function<Float,Float> |
add(short add)
It adds the given number to the target and returns the result |
static Function<Iterable<Float>,Float> |
avg()
It returns the average of all the numbers in the Iterable input object
|
static Function<Iterable<Float>,Float> |
avg(MathContext mathContext)
It returns the average of all the numbers in the Iterable input object. |
static Function<Iterable<Float>,Float> |
avg(RoundingMode roundingMode)
It returns the average of all the numbers in the Iterable input object. |
static Function<Float[],Float> |
avgArray()
It returns the average of all the numbers in the input array |
static Function<Float[],Float> |
avgArray(MathContext mathContext)
It returns the average of all the numbers in the input array. |
static Function<Float[],Float> |
avgArray(RoundingMode roundingMode)
It returns the average of all the numbers in the input array. |
static Function<Float,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<Float,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<Float,Float> |
divideBy(byte divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(byte divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(byte divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(double divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(double divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(double divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(float divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(float divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(float divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(int divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(int divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(int divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(long divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(long divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(long divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(Number divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(Number divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(Number divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,Float> |
divideBy(short divisor)
It divides the target element by the given divisor and returns its result |
static Function<Float,Float> |
divideBy(short divisor,
MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext |
static Function<Float,Float> |
divideBy(short divisor,
RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode |
static Function<Float,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<Float,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<Float,Boolean> |
eqBy(IFunction<Float,?> by,
Object 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<Float,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<Float,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<Float,Boolean> |
eqValueBy(IFunction<Float,?> by,
Object 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<Float,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<Float,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<Float,Boolean> |
greaterOrEqToBy(IFunction<Float,?> by,
Object 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<Float,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<Float,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<Float,Boolean> |
greaterThanBy(IFunction<Float,?> by,
Object 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<Float,Boolean> |
isNotNull()
Determines whether the target object is null or not. |
static Function<Float,Boolean> |
isNull()
Determines whether the target object is null or not. |
static Function<Float,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<Float,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<Float,Boolean> |
lessOrEqToBy(IFunction<Float,?> by,
Object 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<Float,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<Float,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<Float,Boolean> |
lessThanBy(IFunction<Float,?> by,
Object 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<Iterable<Float>,Float> |
max()
It returns the maximum number from an Iterable input object
|
static Function<Float[],Float> |
maxArray()
It returns the maximum number from the input array |
static Function<Iterable<Float>,Float> |
min()
It returns the minimum number from an Iterable input object
|
static Function<Float[],Float> |
minArray()
It returns the minimum number from the input array |
static Function<Float,Float> |
multiplyBy(byte multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(byte multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(byte multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(double multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(double multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(double multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(float multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(float multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(float multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(int multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(int multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(int multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(long multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(long multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(long multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(Number multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(Number multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(Number multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(short multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<Float,Float> |
multiplyBy(short multiplicand,
MathContext mathContext)
It multiplies target by multiplicand and returns its value. |
static Function<Float,Float> |
multiplyBy(short multiplicand,
RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. |
static Function<Float,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<Float,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<Float,Boolean> |
notEqBy(IFunction<Float,?> by,
Object 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<Float,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<Float,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<Float,Boolean> |
notEqValueBy(IFunction<Float,?> by,
Object 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<Float,Float> |
pow(int power)
It performs the operation targetpower and returns its value |
static Function<Float,Float> |
pow(int power,
MathContext mathContext)
It performs the operation targetpower and returns its value. |
static Function<Float,Float> |
pow(int power,
RoundingMode roundingMode)
It performs the operation targetpower and returns its value. |
static Function<Float,Float> |
remainder(byte divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(double divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(float divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(int divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(long divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(Number divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
remainder(short divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<Float,Float> |
subtract(byte subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(double subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(float subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(int subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(long subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(Number subtract)
It subtracts the given number from the target and returns the result |
static Function<Float,Float> |
subtract(short subtract)
It subtracts the given number from the target and returns the result |
static Function<Iterable<Float>,Float> |
sum()
It returns the sum of all the numbers in the Iterable input object
|
static Function<Float[],Float> |
sumArray()
It returns the sum of all the numbers in the input array |
static Function<Float,String> |
toCurrencyStr()
It returns the String representation of the target as a currency in the
default Locale
|
static Function<Float,String> |
toCurrencyStr(boolean groupingUsed)
It returns the String representation of the target as a currency in the
default Locale
|
static Function<Float,String> |
toCurrencyStr(Locale locale)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<Float,String> |
toCurrencyStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<Float,String> |
toCurrencyStr(String locale)
It returns the String representation of the target as a currency in the
given locale
|
static Function<Float,String> |
toCurrencyStr(String locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given locale
|
static Function<Float,String> |
toPercentStr()
A String representing a percentage is created from the target number. |
static Function<Float,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<Float,String> |
toPercentStr(Locale locale)
A String representing a percentage is created from the target number
in the given Locale
|
static Function<Float,String> |
toPercentStr(Locale locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given Locale . |
static Function<Float,String> |
toPercentStr(String locale)
A String representing a percentage is created from the target number
in the given locale
|
static Function<Float,String> |
toPercentStr(String locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given locale. |
static Function<Float,String> |
toStr()
It returns the String representation of the input number
|
static Function<Float,String> |
toStr(boolean groupingUsed)
It returns the String representation of the input number either
using or not using grouping
|
static Function<Float,String> |
toStr(Locale locale)
It returns the String representation of the target number in the given Locale
|
static Function<Float,String> |
toStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target number in the given Locale . |
static Function<Float,String> |
toStr(String locale)
It returns the String representation of the target number in the given locale
|
static Function<Float,String> |
toStr(String locale,
boolean groupingUsed)
It returns the String representation of the target number in the given locale. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Function<Float,String> toStr()
It returns the String
representation of the input number
String
representation of the inputpublic static final Function<Float,String> toStr(boolean groupingUsed)
It returns the String
representation of the input number either
using or not using grouping
groupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Float,String> toStr(Locale locale)
It returns the String
representation of the target number in the given Locale
locale
- the Locale
to be used
String
representation of the inputpublic static final Function<Float,String> toStr(String locale)
It returns the String
representation of the target number in the given locale
locale
- the locale to be used
String
representation of the inputpublic static final Function<Float,String> toStr(Locale locale, boolean groupingUsed)
It returns the String
representation of the target number in the given Locale
. Grouping
will be used depending on the value of the groupingUsed parameter
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Float,String> toStr(String locale, boolean groupingUsed)
It returns the String
representation of the target number in the given locale. Grouping
will be used depending on the value of the groupingUsed parameter
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the inputpublic static final Function<Float,String> toCurrencyStr()
It returns the String
representation of the target as a currency in the
default Locale
String
representation of the input as a currencypublic static final Function<Float,String> toCurrencyStr(boolean groupingUsed)
It returns the String
representation of the target as a currency in the
default Locale
groupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Float,String> toCurrencyStr(Locale locale)
It returns the String
representation of the target as a currency in the
given Locale
locale
- the Locale
to be used
String
representation of the input as a currencypublic static final Function<Float,String> toCurrencyStr(String locale)
It returns the String
representation of the target as a currency in the
given locale
locale
- the locale to be used
String
representation of the input as a currencypublic static final Function<Float,String> toCurrencyStr(Locale locale, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given Locale
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Float,String> toCurrencyStr(String locale, boolean groupingUsed)
It returns the String
representation of the target as a currency in the
given locale
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
String
representation of the input as a currencypublic static final Function<Float,String> toPercentStr()
A String
representing a percentage is created from the target number.
public static final Function<Float,String> toPercentStr(boolean groupingUsed)
A String
representing a percentage is created from the target number
either using grouping or not depending on the given parameter. So,
toPercentStr(true) would return 100,000% if target number is 1000
toPercentStr(false) would return 100000% if target number is 1000
groupingUsed
- whether or not grouping will be used
public static final Function<Float,String> toPercentStr(Locale locale)
A String
representing a percentage is created from the target number
in the given Locale
locale
- the Locale
to be used
public static final Function<Float,String> toPercentStr(String locale)
A String
representing a percentage is created from the target number
in the given locale
locale
- the locale to be used
public static final Function<Float,String> toPercentStr(Locale locale, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given Locale
. Grouping will be used depending on the value of the
groupingUsed parameter.
locale
- the Locale
to be usedgroupingUsed
- whether or not grouping will be used
public static final Function<Float,String> toPercentStr(String locale, boolean groupingUsed)
A String
representing a percentage is created from the target number
in the given locale. Grouping will be used depending on the value of the
groupingUsed parameter.
locale
- the locale to be usedgroupingUsed
- whether or not grouping will be used
public static final Function<Float,Boolean> eq(Float object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the Float
to compare to the target
public static final Function<Float,Boolean> eq(float object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Float,Boolean> eqValue(Number object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> eqValue(float object)
Determines whether the target object and the specified object are equal
in value, this is, whether target.compareTo(object) == 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> notEq(Float object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the Float
to compare to the target
public static final Function<Float,Boolean> notEq(float object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the object to compare to the target
public static final Function<Float,Boolean> notEqValue(Number object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> notEqValue(float object)
Determines whether the target object and the specified object are NOT equal
in value, this is, whether target.compareTo(object) != 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessThan(Number object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessThan(float object)
Determines whether the target object is less than the specified object
in value, this is, whether target.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessOrEqTo(Number object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessOrEqTo(float object)
Determines whether the target object is less or equal to the specified object
in value, this is, whether target.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterThan(Number object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterThan(float object)
Determines whether the target object is greater than the specified object
in value, this is, whether target.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterOrEqTo(Number object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterOrEqTo(float object)
Determines whether the target object is greater or equal to the specified object
in value, this is, whether target.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> eqBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Float,Boolean> eqValueBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are equal
in value, this is, whether functionResult.compareTo(object) == 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> notEqBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
object
- the object to compare to the target
public static final Function<Float,Boolean> notEqValueBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object and the specified object parameter are NOT equal
in value, this is, whether functionResult.compareTo(object) != 0.
Both the function result and the specified object have to implement
Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessThanBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object is less than the specified object parameter
in value, this is, whether functionResult.compareTo(object) < 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> lessOrEqToBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object is less or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) <= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterThanBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object is greater than the specified object parameter
in value, this is, whether functionResult.compareTo(object) > 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> greaterOrEqToBy(IFunction<Float,?> by, Object object)
Determines whether the result of executing the specified function
on the target object is greater or equal to the specified object parameter
in value, this is, whether functionResult.compareTo(object) >= 0. Both
the target and the specified object have to implement Comparable
.
object
- the object to compare to the target
public static final Function<Float,Boolean> isNull()
Determines whether the target object is null or not.
public static final Function<Float,Boolean> isNotNull()
Determines whether the target object is null or not.
public static final Function<Iterable<Float>,Float> max()
It returns the maximum number from an Iterable
input object
public static final Function<Iterable<Float>,Float> min()
It returns the minimum number from an Iterable
input object
public static final Function<Iterable<Float>,Float> sum()
It returns the sum of all the numbers in the Iterable
input object
Iterable
public static final Function<Iterable<Float>,Float> avg()
It returns the average of all the numbers in the Iterable
input object
public static final Function<Iterable<Float>,Float> avg(MathContext mathContext)
It returns the average of all the numbers in the Iterable
input object. The
given MathContext
will be used to round and set the output precision
mathContext
- the MathContext
to define RoundingMode
and precision
of the average
public static final Function<Iterable<Float>,Float> avg(RoundingMode roundingMode)
It returns the average of all the numbers in the Iterable
input object. The
given RoundingMode
will be used to round the output
roundingMode
- the RoundingMode
to round the average
public static final Function<Float[],Float> maxArray()
It returns the maximum number from the input array
public static final Function<Float[],Float> minArray()
It returns the minimum number from the input array
public static final Function<Float[],Float> sumArray()
It returns the sum of all the numbers in the input array
public static final Function<Float[],Float> avgArray()
It returns the average of all the numbers in the input array
public static final Function<Float[],Float> avgArray(MathContext mathContext)
It returns the average of all the numbers in the input array. The
given MathContext
will be used to round and set the output precision
mathContext
- the MathContext
to define RoundingMode
and precision
of the average
public static final Function<Float[],Float> avgArray(RoundingMode roundingMode)
It returns the average of all the numbers in the input array. The
given RoundingMode
will be used to round the output
roundingMode
- the RoundingMode
to round the average
public static final Function<Float,Float> abs()
It returns the absolute value of the input
public static final Function<Float,Float> add(Number add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(byte add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(short add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(int add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(long add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(float add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> add(double add)
It adds the given number to the target and returns the result
add
- value to be added to the target
public static final Function<Float,Float> subtract(Number subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(byte subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(short subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(int subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(long subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(float subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> subtract(double subtract)
It subtracts the given number from the target and returns the result
subtract
- number to be subtracted from the target
public static final Function<Float,Float> divideBy(Number divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(byte divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(short divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(int divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(long divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(float divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(double divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<Float,Float> divideBy(Number divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(byte divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(short divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(int divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(long divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(float divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(double divisor, MathContext mathContext)
It divides the target element by the given divisor and returns its result with the precision and rounding mode specified by mathContext
divisor
- the divisormathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> divideBy(Number divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(byte divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(short divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(int divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(long divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(float divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> divideBy(double divisor, RoundingMode roundingMode)
It divides the target element by the given divisor and returns its result rounded based on the specified rounding mode
divisor
- the divisorroundingMode
- the RoundingMode
public static final Function<Float,Float> remainder(Number divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(byte divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(short divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(int divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(long divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(float divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> remainder(double divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor)
divisor
- the divisor
public static final Function<Float,Float> multiplyBy(Number multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(byte multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(short multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(int multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(long multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(float multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(double multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<Float,Float> multiplyBy(Number multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(byte multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(short multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(int multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(long multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(float multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(double multiplicand, MathContext mathContext)
It multiplies target by multiplicand and returns its value. The result precision
and RoundingMode
is specified by the given MathContext
multiplicand
- the multiplicandmathContext
- the MathContext
to define RoundingMode
and precision
public static final Function<Float,Float> multiplyBy(Number multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(byte multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(short multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(int multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(long multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(float multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> multiplyBy(double multiplicand, RoundingMode roundingMode)
It multiplies target by multiplicand and returns its value. The result is
rounded based on the given RoundingMode
multiplicand
- the multiplicandroundingMode
- the RoundingMode
public static final Function<Float,Float> pow(int power)
It performs the operation targetpower and returns its value
power
- the power to raise the target to
public static final Function<Float,Float> pow(int power, MathContext mathContext)
It performs the operation targetpower and returns its value. The result
precision and rounding mode is specified by the given MathContext
power
- the power to raise the target tomathContext
- the MathContext
to specify precision and RoundingMode
public static final Function<Float,Float> pow(int power, RoundingMode roundingMode)
It performs the operation targetpower and returns its value. The result
rounding mode is specified by the given RoundingMode
power
- the power to raise the target toroundingMode
- the RoundingMode
public static final Function<Float,Boolean> between(Number min, Number max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
public static final Function<Float,Boolean> between(float min, float max)
Determines whether the target object is between min and max
in value, this is, whether
target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
The target and the specified min and max have to implement Comparable
.
min
- the minimum value of the targetmax
- the maximum value of the target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |