T
- The type of the indexed value.public class Indexed<T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getIndex() |
T |
getValue() |
int |
hashCode() |
static <T> Indexed<T> |
index(long index,
T value)
Combine an index and a value into an indexed value.
|
public static <T> Indexed<T> index(long index, T value)
T
- The type of the value.index
- The index of the value.value
- The value indexed.public long getIndex()
public T getValue()
Copyright © 2015. All rights reserved.