| java.lang.Object chat.business.SnapshotImpl
SnapshotImpl | public class SnapshotImpl implements Snapshot(Code) | | This class is used as a way to return both a vector and a long from
a method in the Discussion class. It holds a "snapshot in time" of the
state of the discussion. The state field holds the timestamp of that
state.
|
Field Summary | |
public Vector | contents A list of all the messages (Message objects). | public long | state The timestamp in place when this snapshot was taken. |
Constructor Summary | |
public | SnapshotImpl(Vector contents, long state) Create a new snapshot. |
contents | public Vector contents(Code) | | A list of all the messages (Message objects).
|
state | public long state(Code) | | The timestamp in place when this snapshot was taken.
|
SnapshotImpl | public SnapshotImpl(Vector contents, long state)(Code) | | Create a new snapshot. Be sure that the contents of the vector
are in sync with the state value.
|
getState | public long getState()(Code) | | |
|
|