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 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 classjava.lang.Object
-
hashCode
int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-