public class Index
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier | Constructor and Description |
|---|---|
private |
Index(int value) |
| Modifier and Type | Method and Description |
|---|---|
static Index |
atIndex(int value)
Creates a new
Index. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static Index atIndex(int value)
Index.value - the value of the index.Index.java.lang.IllegalArgumentException - if the given value is negative.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object