org.fest.assertions.data
Class Index

java.lang.Object
  extended by org.fest.assertions.data.Index

public class Index
extends Object

An index.

Author:
Alex Ruiz

Field Summary
 int value
          The value of this index.
 
Method Summary
static Index atIndex(int index)
          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
The value of this index.

Method Detail

atIndex

public static Index atIndex(int index)
Creates a new Index.

Parameters:
index - 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 © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.