public class Miscellaneous
extends java.lang.Object
Constructor and Description |
---|
Miscellaneous() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getReplacement(java.lang.String originalTerm)
Returns term's replacement.
|
static double |
getRoundedProduct(double multiplicand,
double multiplier)
Multiplication and rounding with two decimals.
|
static double |
round(double value)
Rounding with two decimals.
|
static void |
setTermSwapping(TermSwapping termSwapping)
Sets the application's term swapper.
|
public static void setTermSwapping(TermSwapping termSwapping)
termSwapping
- the term swapper to setpublic static java.lang.String getReplacement(java.lang.String originalTerm)
originalTerm
- the original termsetTermSwapping(TermSwapping)
public static double getRoundedProduct(double multiplicand, double multiplier)
multiplicand
- the multiplicandmultiplier
- the multiplierpublic static double round(double value)
value
- the value to roundCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de