gnu.prolog.database
Class Pair<L,R>
java.lang.Object
gnu.prolog.database.Pair<L,R>
- Type Parameters:
L
- R
-
public class Pair<L,R>
- extends Object
A pair of a L
and a R
(Because java doesn't do tuples)
- Author:
- daniel
Field Summary |
L |
left
The left part of the tuple |
R |
right
The right part of the tuple |
Constructor Summary |
Pair(L left,
R right)
Construct a tuple with a left and right part |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
left
public L left
- The left part of the tuple
right
public R right
- The right part of the tuple
Pair
public Pair(L left,
R right)
- Construct a tuple with a left and right part
- Parameters:
left
- the left partright
- the right part