T
- the type of the second elementpublic final class IntPair<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getFirst()
A first element in a pair.
|
T |
getSecond()
A second element in a pair.
|
int |
hashCode() |
java.lang.String |
toString() |
public IntPair(int first, T second)
public int getFirst()
public T getSecond()
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