S - The type of the left valueT - The type of the right valuepublic class Pair<S,T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected S |
left
The left value.
|
protected T |
right
The right value.
|
| Constructor and Description |
|---|
Pair(S left,
T right)
Creates a new pair consisting of the two values.
|
protected final S left
protected final T right
public S getLeft()
public T getRight()
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2026. All rights reserved.