T1
- the type of the left item in the pairT2
- the type of the right item in the pairpublic class UnmodifiablePair<T1,T2> extends Pair<T1,T2>
Constructor and Description |
---|
UnmodifiablePair(Pair<T1,T2> pair) |
UnmodifiablePair(T1 left,
T2 right) |
Modifier and Type | Method and Description |
---|---|
void |
setKey(T1 key)
Replaces the key corresponding to this entry with the specified key
(optional operation).
|
void |
setLeft(T1 left)
Sets the left item in the pair
|
void |
setRight(T2 right)
Sets the right item in the pair
|
T2 |
setValue(T2 value) |
public UnmodifiablePair(Pair<T1,T2> pair)
pair
- a normal Pair to build an UnmodifiablePair frompublic void setKey(T1 key)
Pair
public void setLeft(T1 left)
Pair
public void setRight(T2 right)
Pair