Package org.assertj.core.data
Class Percentage
java.lang.Object
org.assertj.core.data.Percentage
A positive percentage value.
- Author:
- Alexander Bishcof
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
toString()
static Percentage
withPercentage
(double value) Creates a newPercentage
.
-
Field Details
-
value
public final double value
-
-
Method Details
-
withPercentage
Creates a newPercentage
.- Parameters:
value
- the value of the percentage.- Returns:
- the created
Percentage
. - Throws:
NullPointerException
- if the given value isnull
.IllegalArgumentException
- if the given value is negative.
-
equals
-
hashCode
public int hashCode() -
toString
-