public class Tuple<L,R> extends Object implements Pair<L,R>
Modifier and Type | Field and Description |
---|---|
protected L |
leftValue |
protected R |
rightValue |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
L |
getLeftValue() |
R |
getRightValue() |
int |
hashCode() |
Tuple<R,L> |
swap()
Gives a pair that swaps the values of the current tuple
|
String |
toString() |
public L getLeftValue()
getLeftValue
in interface Pair<L,R>
public R getRightValue()
getRightValue
in interface Pair<L,R>
public Tuple<R,L> swap()
Pair
Copyright © 2016–2019 AdroitLogic. All rights reserved.