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 int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Index(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Index
atIndex(int value)
Creates a newIndex
.boolean
equals(Object obj)
int
hashCode()
String
toString()
-
-
-
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.
-
-