public class Index
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007–2018. All rights reserved.