public class Percentage
extends java.lang.Object
| Constructor and Description |
|---|
Percentage(int decimals) |
Percentage(int decimals,
java.math.BigDecimal value) |
Percentage(int decimals,
double value) |
| Modifier and Type | Method and Description |
|---|---|
Percentage |
add(Percentage otherValue) |
int |
compareTo(Percentage other) |
boolean |
equals(java.lang.Object other) |
int |
getPrecision() |
java.math.BigDecimal |
getValue() |
int |
hashCode() |
void |
multiply(java.lang.Integer otherValue) |
void |
setValue(java.math.BigDecimal value) |
Percentage |
subtract(Percentage otherValue) |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.Locale locale) |
public Percentage(int decimals)
public Percentage(int decimals,
double value)
public Percentage(int decimals,
java.math.BigDecimal value)
public Percentage add(Percentage otherValue)
public Percentage subtract(Percentage otherValue)
public java.lang.String toString(java.util.Locale locale)
public int compareTo(Percentage other)
public final java.math.BigDecimal getValue()
public final int getPrecision()
public final void setValue(java.math.BigDecimal value)
public final void multiply(java.lang.Integer otherValue)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object