public class Percentage extends Object
| Modifier and Type | Field | Description |
|---|---|---|
double |
value |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
toString() |
|
static Percentage |
withPercentage(double value) |
Creates a new
Percentage. |
public static Percentage withPercentage(double value)
Percentage.value - the value of the percentage.Percentage.NullPointerException - if the given value is null.IllegalArgumentException - if the given value is negative.Copyright © 2014–2019. All rights reserved.