Constructor and Description |
---|
BiteJig() |
Modifier and Type | Method and Description |
---|---|
MessageJig |
addMessage()
Adds a message jig, caching it for reuse.
|
PersonJig |
addPerson()
Adds a person jig, caching it for reuse.
|
DiffLookJig |
difference()
The difference associated with this bite.
|
(package private) void |
encachePersons(ArrayList<PersonJig> persons)
Removes all persons from the specified list and caches them for reuse.
|
(package private) void |
encachePersons(ArrayList<PersonJig> persons,
int start)
Removes all persons from the specified list and caches the persons from
the start onwards for reuse.
|
MessageJig |
message()
The first message associated with this bite.
|
List<MessageJig> |
messages()
All messages associated with this bite.
|
PersonJig |
person()
The first person associated with this bite.
|
List<PersonJig> |
persons()
All persons associated with this bite.
|
PollJig |
poll()
The poll associated with this bite.
|
char |
relation() |
Date |
sentDate()
The date on which the bite was parsed into the database.
|
void |
serialize(com.google.gson.stream.JsonWriter out)
Serializes the fields of this object in JSON form, and clears them.
|
DiffLookJig |
setDifference()
Ensures the difference is set to a jig and caches the jig for reuse.
|
PollJig |
setPoll()
Ensures the poll is set to a jig and caches the jig for reuse.
|
void |
setRelation(char c)
Sets the relation of the first person to the other
in difference related messages.
|
void |
setSentDate(Date pd)
Sets the date on which the bite was parsed.
|
(package private) PersonJig |
uncachePerson()
Fetches a person jig from the cache, or creates a new jig if the cache is
empty.
|
public BiteJig()
void encachePersons(ArrayList<PersonJig> persons)
uncachePerson()
void encachePersons(ArrayList<PersonJig> persons, int start)
uncachePerson()
PersonJig uncachePerson()
encachePersons(ArrayList)
public DiffLookJig difference()
Bite
difference
in interface Bite
public DiffLookJig setDifference()
public MessageJig message()
Bite
public List<MessageJig> messages()
Bite
public MessageJig addMessage()
public char relation()
public void setRelation(char c)
public Date sentDate()
Bite
public void setSentDate(Date pd)
public PersonJig person()
Bite
public List<PersonJig> persons()
Bite
public PersonJig addPerson()
public PollJig poll()
Bite
public PollJig setPoll()
public void serialize(com.google.gson.stream.JsonWriter out) throws IOException
SerialJig
serialize
in interface SerialJig
IOException