public class Vote
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Vote.Value |
Constructor and Description |
---|
Vote(long ownerId,
org.joda.time.DateTime creationDate,
org.joda.time.DateTime editionDate,
Vote.Value value) |
Vote(long ownerId,
Vote.Value value) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getCreationDate() |
org.joda.time.DateTime |
getEditionDate() |
long |
getOwnerId() |
Vote.Value |
getValue() |
void |
setCreationDate(org.joda.time.DateTime creationDate) |
void |
setEditionDate(org.joda.time.DateTime editionDate) |
void |
setOwnerId(long ownerId) |
void |
setValue(Vote.Value value) |
public Vote(long ownerId, org.joda.time.DateTime creationDate, org.joda.time.DateTime editionDate, Vote.Value value)
authorId
- authorName
- creationDate
- editionDate
- value
- public Vote(long ownerId, Vote.Value value)
authorId
- authorName
- value
- public org.joda.time.DateTime getCreationDate()
public org.joda.time.DateTime getEditionDate()
public long getOwnerId()
public Vote.Value getValue()
public void setCreationDate(org.joda.time.DateTime creationDate)
public void setEditionDate(org.joda.time.DateTime editionDate)
public void setOwnerId(long ownerId)
public void setValue(Vote.Value value)