Class ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId

java.lang.Object
com.hack23.cia.model.internal.application.data.party.impl.ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId>

@Embeddable public class ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId>
The Class ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId. Composite key for coalition alignment matrix (party1 + party2).
See Also:
  • Constructor Details

    • ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId

      public ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId()
      Instantiates a new view riksdagen coalition alignment matrix embedded id.
    • ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId

      public ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId(java.lang.String party1, java.lang.String party2)
      Instantiates a new view riksdagen coalition alignment matrix embedded id.
      Parameters:
      party1 - the party1
      party2 - the party2
  • Method Details

    • getParty1

      public java.lang.String getParty1()
      Gets the party1.
      Returns:
      the party1
    • setParty1

      public void setParty1(java.lang.String party1)
      Sets the party1.
      Parameters:
      party1 - the new party1
    • getParty2

      public java.lang.String getParty2()
      Gets the party2.
      Returns:
      the party2
    • setParty2

      public void setParty2(java.lang.String party2)
      Sets the party2.
      Parameters:
      party2 - the new party2
    • equals

      public boolean equals(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • compareTo

      Specified by:
      compareTo in interface java.lang.Comparable<ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId>