org.simoes.lpd.util
Class QueuedObject
java.lang.Object
org.simoes.lpd.util.QueuedObject
- public class QueuedObject
- extends java.lang.Object
Encapsulates any Object that is stored in a Queue
- Author:
- Jason Crowe
Field Summary |
protected long |
id
|
protected java.lang.Object |
object
|
protected java.util.Date |
timeStamp
|
Constructor Summary |
QueuedObject(long id,
java.util.Date timeStamp,
java.lang.Object object)
constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
id
protected final long id
timeStamp
protected final java.util.Date timeStamp
object
protected final java.lang.Object object
QueuedObject
public QueuedObject(long id,
java.util.Date timeStamp,
java.lang.Object object)
- constructor.
- Parameters:
id
- - unique identifier for this queued object.timeStamp
- - timestamp of when the queued object was queued.object
- - object that is queued. (underlying object must be cloneable)
getId
public long getId()
getTimeStamp
public java.util.Date getTimeStamp()
getObject
public java.lang.Object getObject()
equals
public boolean equals(java.lang.Object o)
toString
public java.lang.String toString()
main
public static void main(java.lang.String[] args)