public class Index extends Object
Modifier and Type | Field | Description |
---|---|---|
int |
value |
Modifier and Type | Method | Description |
---|---|---|
static Index |
atIndex(int value) |
Creates a new
Index . |
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
toString() |
public static Index atIndex(int value)
Index
.value
- the value of the index.Index
.IllegalArgumentException
- if the given value is negative.Copyright © 2014–2019. All rights reserved.