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
value
public final int value
atIndex
public static Index atIndex(int value)
- Creates a new
Index.
- Parameters:
value - the value of the index.
- Returns:
- the created
Index.
- Throws:
IllegalArgumentException - if the given value is negative.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013–2015 AssertJ. All rights reserved.