FnBigInteger is a function hub class containing a lot of static methods to work with BigInteger objects. Those static methods return functions that take an BigInteger object either as its input or output (depending on the function). It includes conversions to String, to an String representing a currency and logical operations between BigInteger objects among others.
Function name | Type | Params | Description |
---|---|---|---|
abs | Function<BigInteger, BigInteger> | It returns the absolute value of the input | |
add | Function<BigInteger, BigInteger> | Number add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | byte add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | short add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | int add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | long add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | float add | It adds the given number to the target and returns the result |
add | Function<BigInteger, BigInteger> | double add | It adds the given number to the target and returns the result |
avg | Function<Iterable<BigInteger>, BigInteger> | It returns the average of all the numbers in the Iterable input object | |
avg | Function<Iterable<BigInteger>, BigInteger> | 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 |
avg | Function<Iterable<BigInteger>, BigInteger> | 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 |
avgArray | Function<BigInteger[], BigInteger> | It returns the average of all the numbers in the input array | |
avgArray | Function<BigInteger[], BigInteger> | RoundingMode roundingMode | It returns the average of all the numbers in the input array. The given RoundingMode will be used to round the output |
avgArray | Function<BigInteger[], BigInteger> | 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 |
between | Function<BigInteger,Boolean> | 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. |
divideBy | Function<BigInteger, BigInteger> | Number divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | byte divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | short divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | int divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | long divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | float divisor | It divides the target element by the given divisor and returns its result |
divideBy | Function<BigInteger, BigInteger> | double divisor | It divides the target element by the given divisor and returns its result |
eq | Function<BigInteger,Boolean> | BigInteger object | Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
eqBy | Function<BigInteger,Boolean> | 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. |
eqValue | Function<BigInteger,Boolean> | 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. |
eqValueBy | Function<BigInteger,Boolean> | 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. |
greaterOrEqTo | Function<BigInteger,Boolean> | 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. |
greaterOrEqToBy | Function<BigInteger,Boolean> | 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. |
greaterThan | Function<BigInteger,Boolean> | 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. |
greaterThanBy | Function<BigInteger,Boolean> | 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. |
isNotNull | Function<BigInteger,Boolean> | Determines whether the target object is null or not. | |
isNull | Function<BigInteger,Boolean> | Determines whether the target object is null or not. | |
lessOrEqTo | Function<BigInteger,Boolean> | 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. |
lessOrEqToBy | Function<BigInteger,Boolean> | 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. |
lessThan | Function<BigInteger,Boolean> | 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. |
lessThanBy | Function<BigInteger,Boolean> | 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. |
max | Function<Iterable<BigInteger>, BigInteger> | It returns the maximum number from an Iterable input object | |
maxArray | Function<BigInteger[], BigInteger> | It returns the maximum number from the input array | |
min | Function<Iterable<BigInteger>, BigInteger> | It returns the minimum number from an Iterable input object | |
minArray | Function<BigInteger[], BigInteger> | It returns the minimum number from the input array | |
module | Function<BigInteger, BigInteger> | byte module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | short module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | int module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | long module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | Byte module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | Short module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | Integer module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | Long module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
module | Function<BigInteger, BigInteger> | BigInteger module | It performs a module operation and returns the value of (input mod module) which is always positive (whereas remainder is not) |
multiplyBy | Function<BigInteger, BigInteger> | Number multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | byte multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | short multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | int multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | long multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | float multiplicand | It multiplies target by multiplicand and returns its value |
multiplyBy | Function<BigInteger, BigInteger> | double multiplicand | It multiplies target by multiplicand and returns its value |
notEq | Function<BigInteger,Boolean> | BigInteger object | Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object. |
notEqBy | Function<BigInteger,Boolean> | 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. |
notEqValue | Function<BigInteger,Boolean> | 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. |
notEqValueBy | Function<BigInteger,Boolean> | 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. |
pow | Function<BigInteger, BigInteger> | int power | It performs the operation targetpower and returns its value |
remainder | Function<BigInteger, BigInteger> | Number divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | byte divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | short divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | int divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | long divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | float divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
remainder | Function<BigInteger, BigInteger> | double divisor | It divides the target element by the given divisor and returns the remainder (target % divisor) |
subtract | Function<BigInteger, BigInteger> | Number subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | byte subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | short subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | int subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | long subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | float subtract | It subtracts the given number from the target and returns the result |
subtract | Function<BigInteger, BigInteger> | double subtract | It subtracts the given number from the target and returns the result |
sum | Function<Iterable<BigInteger>, BigInteger> | It returns the sum of all the numbers in the Iterable input object | |
sumArray | Function<BigInteger[], BigInteger> | It returns the sum of all the numbers in the input array | |
toCurrencyStr | Function<BigInteger,String> | It returns the String representation of the target as a currency in the default Locale | |
toCurrencyStr | Function<BigInteger,String> | boolean groupingUsed | It returns the String representation of the target as a currency in the default Locale |
toCurrencyStr | Function<BigInteger,String> | Locale locale | It returns the String representation of the target as a currency in the given Locale |
toCurrencyStr | Function<BigInteger,String> | String locale | It returns the String representation of the target as a currency in the given locale |
toCurrencyStr | Function<BigInteger,String> | Locale locale boolean groupingUsed | It returns the String representation of the target as a currency in the given Locale |
toCurrencyStr | Function<BigInteger,String> | String locale boolean groupingUsed | It returns the String representation of the target as a currency in the given locale |
toPercentStr | Function<BigInteger,String> | A String representing a percentage is created from the target number. | |
toPercentStr | Function<BigInteger,String> | 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 1000toPercentStr(false) would return 100000% if target number is 1000 |
toPercentStr | Function<BigInteger,String> | Locale locale | A String representing a percentage is created from the target number in the given Locale |
toPercentStr | Function<BigInteger,String> | String locale | A String representing a percentage is created from the target number in the given locale |
toPercentStr | Function<BigInteger,String> | 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. |
toPercentStr | Function<BigInteger,String> | 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. |
toStr | Function<BigInteger,String> | It returns the String representation of the input number | |
toStr | Function<BigInteger,String> | boolean groupingUsed | It returns the String representation of the input number either using or not using grouping |
toStr | Function<BigInteger,String> | Locale locale | It returns the String representation of the target number in the given Locale |
toStr | Function<BigInteger,String> | String locale | It returns the String representation of the target number in the given locale |
toStr | Function<BigInteger,String> | 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 |
toStr | Function<BigInteger,String> | 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 |