org.openjena.atlas.lib
Class Pair<A,B>

java.lang.Object
  extended by org.openjena.atlas.lib.Pair<A,B>

public class Pair<A,B>
extends Object


Constructor Summary
Pair(A a, B b)
           
 
Method Summary
 A car()
           
 B cdr()
           
static
<L,R> Pair<L,R>
create(L x, R y)
           
 boolean equals(Object other)
           
 A getLeft()
           
 B getRight()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A a,
            B b)
Method Detail

create

public static <L,R> Pair<L,R> create(L x,
                                     R y)

getLeft

public A getLeft()

getRight

public B getRight()

car

public A car()

cdr

public B cdr()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Licenced under the Apache License, Version 2.0