T
- the type of the second elementpublic final class Indexed<T>
extends java.lang.Object
public static <T> Indexed<T> of(T value, int index)
public int index()
public T value()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object