Interface Pair<Type1,​Type2>

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Aggregate.Bind, FunctionCall.ScalarValue, tech.oxfordsemantic.jrdfox.util.ImmutablePair, NegativePath.NegatedPath, QueryBody.GroupCondition, QueryBody.OrderCondition, SelectQuery.SelectionPair

public interface Pair<Type1,​Type2>
extends java.io.Serializable
Represents a pair of two objects of arbitrary types.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    Type1 getFirst()
    Returns the first element of the pair.
    Type2 getSecond()
    Returns the second element of the pair.
    int hashCode()  
  • Method Details

    • getFirst

      Type1 getFirst()
      Returns the first element of the pair.
      Returns:
      the first element of the pair
    • getSecond

      Type2 getSecond()
      Returns the second element of the pair.
      Returns:
      the second element of the pair
    • equals

      boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class java.lang.Object