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 Summary
ConstructorsConstructorDescriptionInstantiates a new view riksdagen coalition alignment matrix embedded id.ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId(java.lang.String party1, java.lang.String party2) Instantiates a new view riksdagen coalition alignment matrix embedded id. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanequals(java.lang.Object obj) java.lang.StringGets the party1.java.lang.StringGets the party2.inthashCode()voidsetParty1(java.lang.String party1) Sets the party1.voidsetParty2(java.lang.String party2) Sets the party2.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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 party1party2- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<ViewRiksdagenCoalitionAlignmentMatrixEmbeddedId>
-