Package org.assertj.core.data
Class Percentage
java.lang.Object
org.assertj.core.data.Percentage
A positive percentage value.
- Author:
- Alexander Bishcof
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()toString()static PercentagewithPercentage(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
-