java.lang.Object
com.RuntimeCollective.webapps.LazyListWrapper
com.RuntimeCollective.bboard.MessageList
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.List
- public class MessageList
- extends com.RuntimeCollective.webapps.LazyListWrapper
A list of messages for a bulletin board.
| Methods inherited from class com.RuntimeCollective.webapps.LazyListWrapper |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
MessageList
public MessageList(com.RuntimeCollective.webapps.LazyEBList lazyList)
- Construct a new empty message list,
given a LazyEBList.
addMessage
public void addMessage(com.RuntimeCollective.bboard.bean.Message message)
- Add a message to the list. Note that this does not update the topic itself -- use
Topic.addMessage instead.
getLength
public int getLength()
- Get the number of messages in this list.
getReplies
public int getReplies()
- get the number of replies to the original message.
getMessages
public java.util.List getMessages()
- Get the messages in the list. The order is the same as that defined by the construction vector.
getLastMessageDate
public java.util.Date getLastMessageDate()
- Get the date of the last message on this list.
We'll permit the instantiation of a single Message, here.
getMessagesByReverseDate
public java.util.List getMessagesByReverseDate()
- Get the messages by reverse date. In fact, assumes the List
is sorted by date presently, so merely returns the list in reverse
order.