Package edu.cmu.tetrad.sem
Class ParameterPair
java.lang.Object
edu.cmu.tetrad.sem.ParameterPair
- All Implemented Interfaces:
TetradSerializable
,Serializable
Implements an ordered pair of objects (a, b) suitable for storing in HashSets. The hashCode() method is overridden
so that the hashcode of (a1, b1) == the hashcode of (a2, b2) just in case a1 == a2 and b1 == b2.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterPair
(Parameter a, Parameter b) Constructs a new ordered pair (a, b). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this ParameterPair object is equal to the specified object.getA()
Method getNumObjectsgetB()
Method getNumObjectsint
hashCode()
hashCode.static ParameterPair
Generates a simple exemplar of this class to test serialization.
-
Constructor Details
-
ParameterPair
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
ParameterPair
object
-
getA
-
getB
-
equals
-
hashCode
-