org.assertj.core.data
Class Index

java.lang.Object
  extended by org.assertj.core.data.Index

public class Index
extends Object

A positive index.

Author:
Alex Ruiz

Field Summary
 int value
           
 
Method Summary
static Index atIndex(int value)
          Creates a new Index.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final int value
Method Detail

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.