public class Percentage extends Object
Modifier and Type | Field and Description |
---|---|
double |
value |
Modifier and Type | Method and 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 AssertJ. All rights reserved.