| Modifier and Type | Field and Description |
|---|---|
| private int | index
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| public final boolean | Returns: true iff this instance has been assigned an indexGets whether or not this instance has been assigned an index. |
| public final String | Returns: non-null; the index stringGets the index of this item as a string, suitable for including in annotations. |
| public final void |
| index | back to summary |
|---|---|
| private int index
| |
| IndexedItem | back to summary |
|---|---|
| public IndexedItem() Constructs an instance. The index is initially unassigned. | |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Gets the item index.
| |
| hasIndex | back to summary |
|---|---|
| public final boolean hasIndex() Gets whether or not this instance has been assigned an index.
| |
| indexString | back to summary |
|---|---|
| public final String indexString() Gets the index of this item as a string, suitable for including in annotations.
| |
| setIndex | back to summary |
|---|---|
| public final void setIndex(int index) Sets the item index. This method may only ever be called once
per instance, and this will throw a
| |