Package org.assertj.core.data
Class Index
java.lang.Object
org.assertj.core.data.Index
A positive index.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
public final int value
-
-
Constructor Details
-
Index
private Index(int value)
-
-
Method Details
-
atIndex
Creates a newIndex
.- Parameters:
value
- the value of the index.- Returns:
- the created
Index
. - Throws:
IllegalArgumentException
- if the given value is negative.
-
equals
-
hashCode
public int hashCode() -
toString
-