Package common

Class EntityPair

java.lang.Object
common.EntityPair

public class EntityPair extends Object
Represents a pair of entities. The order is not important.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityPair(role.EntityModel a, role.EntityModel b)
    Defines an unordered pair of entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks to see if the pair contains the same entities (unordered).
    role.EntityModel
    Fetches one of the items.
    role.EntityModel
    Fetches the other item.
     

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public boolean equals(Object obj)
      Checks to see if the pair contains the same entities (unordered). Order is unimportant.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object