T - The type of the indexed value.public class Indexed<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2015. All Rights Reserved.