Interface Pair<Type1,Type2>

All Superinterfaces:
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 Serializable
Represents a pair of two objects of arbitrary types.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns the first element of the pair.
    Returns the second element of the pair.
    int
     
  • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object