Class Pair<L,R>

java.lang.Object
laas.openrobots.ontology.helpers.Pair<L,R>

public class Pair<L,R> extends Object
  • Constructor Details

    • Pair

      public Pair(L left, R right)
  • Method Details

    • 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(Object o)
      Overrides:
      equals in class Object
    • equal

      public static final boolean equal(Object o1, Object o2)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asList

      public 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!!