|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.FnBigInteger
public final class FnBigInteger
Method Summary | |
---|---|
static Function<BigInteger,BigInteger> |
abs()
It returns the absolute value of the input |
static Function<BigInteger,BigInteger> |
add(byte add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(double add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(float add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(int add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(long add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(Number add)
It adds the given number to the target and returns the result |
static Function<BigInteger,BigInteger> |
add(short add)
It adds the given number to the target and returns the result |
static Function<Iterable<BigInteger>,BigInteger> |
avg()
It returns the average of all the numbers in the Iterable input object
|
static Function<Iterable<BigInteger>,BigInteger> |
avg(MathContext mathContext)
It returns the average of all the numbers in the Iterable input object. |
static Function<Iterable<BigInteger>,BigInteger> |
avg(RoundingMode roundingMode)
It returns the average of all the numbers in the Iterable input object. |
static Function<BigInteger[],BigInteger> |
avgArray()
It returns the average of all the numbers in the input array |
static Function<BigInteger[],BigInteger> |
avgArray(MathContext mathContext)
It returns the average of all the numbers in the input array. |
static Function<BigInteger[],BigInteger> |
avgArray(RoundingMode roundingMode)
It returns the average of all the numbers in the input array. |
static Function<BigInteger,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<BigInteger,BigInteger> |
divideBy(byte divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(double divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(float divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(int divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(long divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(Number divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,BigInteger> |
divideBy(short divisor)
It divides the target element by the given divisor and returns its result |
static Function<BigInteger,Boolean> |
eq(BigInteger object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
static Function<BigInteger,Boolean> |
eqBy(IFunction<BigInteger,?> 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<BigInteger,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<BigInteger,Boolean> |
eqValueBy(IFunction<BigInteger,?> 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<BigInteger,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<BigInteger,Boolean> |
greaterOrEqToBy(IFunction<BigInteger,?> 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<BigInteger,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<BigInteger,Boolean> |
greaterThanBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> |
isNotNull()
Determines whether the target object is null or not. |
static Function<BigInteger,Boolean> |
isNull()
Determines whether the target object is null or not. |
static Function<BigInteger,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<BigInteger,Boolean> |
lessOrEqToBy(IFunction<BigInteger,?> 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<BigInteger,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<BigInteger,Boolean> |
lessThanBy(IFunction<BigInteger,?> 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<BigInteger>,BigInteger> |
max()
It returns the maximum number from an Iterable input object
|
static Function<BigInteger[],BigInteger> |
maxArray()
It returns the maximum number from the input array |
static Function<Iterable<BigInteger>,BigInteger> |
min()
It returns the minimum number from an Iterable input object
|
static Function<BigInteger[],BigInteger> |
minArray()
It returns the minimum number from the input array |
static Function<BigInteger,BigInteger> |
module(BigInteger module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(byte module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(Byte module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(int module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(Integer module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(long module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(Long module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(short module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
module(Short module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
static Function<BigInteger,BigInteger> |
multiplyBy(byte multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(double multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(float multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(int multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(long multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(Number multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,BigInteger> |
multiplyBy(short multiplicand)
It multiplies target by multiplicand and returns its value |
static Function<BigInteger,Boolean> |
notEq(BigInteger object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
static Function<BigInteger,Boolean> |
notEqBy(IFunction<BigInteger,?> 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<BigInteger,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<BigInteger,Boolean> |
notEqValueBy(IFunction<BigInteger,?> 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<BigInteger,BigInteger> |
pow(int power)
It performs the operation targetpower and returns its value |
static Function<BigInteger,BigInteger> |
remainder(byte divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(double divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(float divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(int divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(long divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(Number divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
remainder(short divisor)
It divides the target element by the given divisor and returns the remainder (target % divisor) |
static Function<BigInteger,BigInteger> |
subtract(byte subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(double subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(float subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(int subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(long subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(Number subtract)
It subtracts the given number from the target and returns the result |
static Function<BigInteger,BigInteger> |
subtract(short subtract)
It subtracts the given number from the target and returns the result |
static Function<Iterable<BigInteger>,BigInteger> |
sum()
It returns the sum of all the numbers in the Iterable input object
|
static Function<BigInteger[],BigInteger> |
sumArray()
It returns the sum of all the numbers in the input array |
static Function<BigInteger,String> |
toCurrencyStr()
It returns the String representation of the target as a currency in the
default Locale
|
static Function<BigInteger,String> |
toCurrencyStr(boolean groupingUsed)
It returns the String representation of the target as a currency in the
default Locale
|
static Function<BigInteger,String> |
toCurrencyStr(Locale locale)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<BigInteger,String> |
toCurrencyStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given Locale
|
static Function<BigInteger,String> |
toCurrencyStr(String locale)
It returns the String representation of the target as a currency in the
given locale
|
static Function<BigInteger,String> |
toCurrencyStr(String locale,
boolean groupingUsed)
It returns the String representation of the target as a currency in the
given locale
|
static Function<BigInteger,String> |
toPercentStr()
A String representing a percentage is created from the target number. |
static Function<BigInteger,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<BigInteger,String> |
toPercentStr(Locale locale)
A String representing a percentage is created from the target number
in the given Locale
|
static Function<BigInteger,String> |
toPercentStr(Locale locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given Locale . |
static Function<BigInteger,String> |
toPercentStr(String locale)
A String representing a percentage is created from the target number
in the given locale
|
static Function<BigInteger,String> |
toPercentStr(String locale,
boolean groupingUsed)
A String representing a percentage is created from the target number
in the given locale. |
static Function<BigInteger,String> |
toStr()
It returns the String representation of the input number
|
static Function<BigInteger,String> |
toStr(boolean groupingUsed)
It returns the String representation of the input number either
using or not using grouping
|
static Function<BigInteger,String> |
toStr(Locale locale)
It returns the String representation of the target number in the given Locale
|
static Function<BigInteger,String> |
toStr(Locale locale,
boolean groupingUsed)
It returns the String representation of the target number in the given Locale . |
static Function<BigInteger,String> |
toStr(String locale)
It returns the String representation of the target number in the given locale
|
static Function<BigInteger,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<BigInteger,String> toStr()
It returns the String
representation of the input number
String
representation of the inputpublic static final Function<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,String> toPercentStr()
A String
representing a percentage is created from the target number.
public static final Function<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,Boolean> eq(BigInteger object)
Determines whether the target object and the specified object are equal by calling the equals method on the target object.
object
- the BigInteger
to compare to the target
public static final Function<BigInteger,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<BigInteger,Boolean> notEq(BigInteger object)
Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
object
- the BigInteger
to compare to the target
public static final Function<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,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<BigInteger,Boolean> eqBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> eqValueBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> notEqBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> notEqValueBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> lessThanBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> lessOrEqToBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> greaterThanBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> greaterOrEqToBy(IFunction<BigInteger,?> 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<BigInteger,Boolean> isNull()
Determines whether the target object is null or not.
public static final Function<BigInteger,Boolean> isNotNull()
Determines whether the target object is null or not.
public static final Function<Iterable<BigInteger>,BigInteger> max()
It returns the maximum number from an Iterable
input object
public static final Function<Iterable<BigInteger>,BigInteger> min()
It returns the minimum number from an Iterable
input object
public static final Function<Iterable<BigInteger>,BigInteger> sum()
It returns the sum of all the numbers in the Iterable
input object
Iterable
public static final Function<Iterable<BigInteger>,BigInteger> avg()
It returns the average of all the numbers in the Iterable
input object
public static final Function<Iterable<BigInteger>,BigInteger> 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<Iterable<BigInteger>,BigInteger> 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<BigInteger[],BigInteger> maxArray()
It returns the maximum number from the input array
public static final Function<BigInteger[],BigInteger> minArray()
It returns the minimum number from the input array
public static final Function<BigInteger[],BigInteger> sumArray()
It returns the sum of all the numbers in the input array
public static final Function<BigInteger[],BigInteger> avgArray()
It returns the average of all the numbers in the input array
public static final Function<BigInteger[],BigInteger> 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<BigInteger[],BigInteger> 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<BigInteger,BigInteger> abs()
It returns the absolute value of the input
public static final Function<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> divideBy(Number divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(byte divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(short divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(int divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(long divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(float divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> divideBy(double divisor)
It divides the target element by the given divisor and returns its result
divisor
- the divisor
public static final Function<BigInteger,BigInteger> module(byte module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(short module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(int module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(long module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(Byte module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(Short module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(Integer module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(Long module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> module(BigInteger module)
It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not)
module
- the module
public static final Function<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> 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<BigInteger,BigInteger> multiplyBy(Number multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(byte multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(short multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(int multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(long multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(float multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> multiplyBy(double multiplicand)
It multiplies target by multiplicand and returns its value
multiplicand
- the multiplicand
public static final Function<BigInteger,BigInteger> pow(int power)
It performs the operation targetpower and returns its value
power
- the power to raise the target to
public static final Function<BigInteger,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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |