Package laas.openrobots.ontology.helpers
Class Pair<L,R>
- java.lang.Object
-
- laas.openrobots.ontology.helpers.Pair<L,R>
-
public class Pair<L,R> extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<L>
asList()
If the left and right members of the pair have the same type, return a list of the members.static <A,B>
Pair<A,B>create(A left, B right)
static boolean
equal(java.lang.Object o1, java.lang.Object o2)
boolean
equals(java.lang.Object o)
L
getLeft()
R
getRight()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getRight
public R getRight()
-
getLeft
public L getLeft()
-
create
public static <A,B> Pair<A,B> create(A left, B right)
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
equal
public static final boolean equal(java.lang.Object o1, java.lang.Object o2)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asList
public java.util.List<L> asList()
If the left and right members of the pair have the same type, return a list of the members. Else, return null TODO Test this code!!
-
-