Package org.fest.assertions.data
Class Index
- java.lang.Object
-
- org.fest.assertions.data.Index
-
public class Index extends java.lang.Object
A positive index.- Author:
- Alex Ruiz
-
-
Field Summary
Fields Modifier and Type Field Description 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(java.lang.Object obj)
int
hashCode()
java.lang.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:
java.lang.IllegalArgumentException
- if the given value is negative.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-