Package org.tweetyproject.arg.adf.util
Class Pair<T1,T2>
java.lang.Object
org.tweetyproject.arg.adf.util.Pair<T1,T2>
- Type Parameters:
T1
- typeT2
- type
Pair class
- Author:
- Mathias Hofer
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
first -
second
second
-
-
Constructor Details
-
Pair
-
-
Method Details
-
of
Creates a newPair
consisting of two elements.This method is a convenience factory method that constructs a
Pair
from the two provided elements.- Type Parameters:
T1
- The type of the first element in the pair.T2
- The type of the second element in the pair.- Parameters:
a
- The first element of the pair.b
- The second element of the pair.- Returns:
- A
Pair<T1, T2>
containing the two specified elements.
-
hashCode
-
equals
-