Class BallotDocumentElement
- java.lang.Object
-
- com.hack23.cia.model.external.riksdagen.voteringlista.impl.BallotDocumentElement
-
- All Implemented Interfaces:
com.hack23.cia.model.common.api.ModelObject
,java.io.Serializable
@Entity(name="BallotDocumentElement") public class BallotDocumentElement extends java.lang.Object implements com.hack23.cia.model.common.api.ModelObject
The Class BallotDocumentElement.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
absentVotes
The absent votes.protected int
abstainedVotes
The abstained votes.protected java.lang.String
ballotId
The ballot id.protected java.lang.Long
hjid
The hjid.protected int
noVotes
The no votes.protected int
yesVotes
The yes votes.
-
Constructor Summary
Constructors Constructor Description BallotDocumentElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
int
getAbsentVotes()
Gets the absent votes.int
getAbstainedVotes()
Gets the abstained votes.java.lang.String
getBallotId()
Gets the ballot id.java.lang.Long
getHjid()
Gets the hjid.int
getNoVotes()
Gets the no votes.int
getYesVotes()
Gets the yes votes.int
hashCode()
void
setAbsentVotes(int value)
Sets the absent votes.void
setAbstainedVotes(int value)
Sets the abstained votes.void
setBallotId(java.lang.String value)
Sets the ballot id.void
setHjid(java.lang.Long value)
Sets the hjid.void
setNoVotes(int value)
Sets the no votes.void
setYesVotes(int value)
Sets the yes votes.java.lang.String
toString()
BallotDocumentElement
withAbsentVotes(int value)
With absent votes.BallotDocumentElement
withAbstainedVotes(int value)
With abstained votes.BallotDocumentElement
withBallotId(java.lang.String value)
With ballot id.BallotDocumentElement
withNoVotes(int value)
With no votes.BallotDocumentElement
withYesVotes(int value)
With yes votes.
-
-
-
Field Detail
-
ballotId
protected java.lang.String ballotId
The ballot id.
-
yesVotes
protected int yesVotes
The yes votes.
-
noVotes
protected int noVotes
The no votes.
-
absentVotes
protected int absentVotes
The absent votes.
-
abstainedVotes
protected int abstainedVotes
The abstained votes.
-
hjid
protected java.lang.Long hjid
The hjid.
-
-
Method Detail
-
getBallotId
public java.lang.String getBallotId()
Gets the ballot id.- Returns:
- the ballot id
-
setBallotId
public void setBallotId(java.lang.String value)
Sets the ballot id.- Parameters:
value
- the new ballot id
-
getYesVotes
public int getYesVotes()
Gets the yes votes.- Returns:
- the yes votes
-
setYesVotes
public void setYesVotes(int value)
Sets the yes votes.- Parameters:
value
- the new yes votes
-
getNoVotes
public int getNoVotes()
Gets the no votes.- Returns:
- the no votes
-
setNoVotes
public void setNoVotes(int value)
Sets the no votes.- Parameters:
value
- the new no votes
-
getAbsentVotes
public int getAbsentVotes()
Gets the absent votes.- Returns:
- the absent votes
-
setAbsentVotes
public void setAbsentVotes(int value)
Sets the absent votes.- Parameters:
value
- the new absent votes
-
getAbstainedVotes
public int getAbstainedVotes()
Gets the abstained votes.- Returns:
- the abstained votes
-
setAbstainedVotes
public void setAbstainedVotes(int value)
Sets the abstained votes.- Parameters:
value
- the new abstained votes
-
withBallotId
public BallotDocumentElement withBallotId(java.lang.String value)
With ballot id.- Parameters:
value
- the value- Returns:
- the ballot document element
-
withYesVotes
public BallotDocumentElement withYesVotes(int value)
With yes votes.- Parameters:
value
- the value- Returns:
- the ballot document element
-
withNoVotes
public BallotDocumentElement withNoVotes(int value)
With no votes.- Parameters:
value
- the value- Returns:
- the ballot document element
-
withAbsentVotes
public BallotDocumentElement withAbsentVotes(int value)
With absent votes.- Parameters:
value
- the value- Returns:
- the ballot document element
-
withAbstainedVotes
public BallotDocumentElement withAbstainedVotes(int value)
With abstained votes.- Parameters:
value
- the value- Returns:
- the ballot document element
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getHjid
public java.lang.Long getHjid()
Gets the hjid.- Returns:
- the hjid
-
setHjid
public void setHjid(java.lang.Long value)
Sets the hjid.- Parameters:
value
- the new hjid
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-