Package common
Class EntityPair
java.lang.Object
common.EntityPair
Represents a pair of entities. The order is not important.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityPair(role.EntityModel a, role.EntityModel b) Defines an unordered pair of entities. -
Method Summary
-
Constructor Details
-
EntityPair
public EntityPair(role.EntityModel a, role.EntityModel b) Defines an unordered pair of entities.- Parameters:
a-b-
-
-
Method Details
-
getA
public role.EntityModel getA()Fetches one of the items.- Returns:
- one of the items in the pair
-
getB
public role.EntityModel getB()Fetches the other item.- Returns:
- the b
-
equals
Checks to see if the pair contains the same entities (unordered). Order is unimportant. -
toString
-