Package org.assertj.core.data
Class Index
- java.lang.Object
-
- org.assertj.core.data.Index
-
public class Index extends Object
A positive index.- Author:
- Alex Ruiz
-
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateIndex(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexatIndex(int value)Creates a newIndex.booleanequals(Object obj)inthashCode()StringtoString()
-
-
-
Method Detail
-
atIndex
public static Index atIndex(int value)
Creates a newIndex.- Parameters:
value- the value of the index.- Returns:
- the created
Index. - Throws:
IllegalArgumentException- if the given value is negative.
-
-