Package io.github.cvc5
Class Triplet<A,B,C>
java.lang.Object
io.github.cvc5.Triplet<A,B,C>
- Type Parameters:
A- the type of the first elementB- the type of the second elementC- the type of the third element
A generic container class to hold a triplet of objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
The first element of the triplet. -
second
The second element of the triplet. -
third
The third element of the triplet.
-
-
Constructor Details
-
Triplet
Construct a newTripletwith the specified values.- Parameters:
first- the first elementsecond- the second elementthird- the third element
-
-
Method Details
-
equals
Indicate whether some other object is "equal to" this one. TwoTripletinstances are equal if their correspondingfirst,second, andthirdelements are equal. Elements are compared withObjects.equals(Object, Object), sonullelements are permitted and compare equal to each other. -
hashCode
public int hashCode()Return a hash code value for this triplet. The hash code is derived from the hash codes of thefirst,secondandthirdelements, so that triplets that are equal according toequals(Object)have the same hash code.
-