GNU Prolog for Java

gnu.prolog.database
Class Pair<L,R>

java.lang.Object
  extended by 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
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

public L left
The left part of the tuple


right

public R right
The right part of the tuple

Constructor Detail

Pair

public Pair(L left,
            R right)
Construct a tuple with a left and right part

Parameters:
left - the left part
right - the right part

GNU Prolog for Java