|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.edwards.des.block.Vote
public class Vote
Data structure maintaining a single vote for a single entity. This vote may
be for an office or a referendum. Ballots are made up of
multiple votes, making the Vote the most basic unit composing Blocks.
Created on: Nov 3, 2015 at 10:41:29 AM
| Field Summary | |
|---|---|
private int |
id
|
private java.lang.String |
vote
|
| Constructor Summary | |
|---|---|
Vote(int id,
java.lang.String vote)
Creates a new Vote using the specified ID and vote content. Ex: [ID:1,VOTE:Obama] |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Returns this vote in binary format as a byte array. |
int |
getID()
Gets the vote ID of the office or referendum being voted on. |
java.lang.String |
getVote()
Returns the vote content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private java.lang.String vote
| Constructor Detail |
|---|
public Vote(int id,
java.lang.String vote)
id - ID of the office or referendum being voted onvote - Vote content (as a String)| Method Detail |
|---|
public int getID()
public java.lang.String getVote()
public byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||