com.isti.quakewatch.message
Class QWStaticMsgNumTimeRec

java.lang.Object
  extended by com.isti.quakewatch.message.QWStaticMsgNumTimeRec
All Implemented Interfaces:
QWMsgNumTimeRec

public class QWStaticMsgNumTimeRec
extends java.lang.Object
implements QWMsgNumTimeRec

Class QWStaticMsgNumTimeRec defines an immutable record holding holding message-record and time-generated values.


Constructor Summary
QWStaticMsgNumTimeRec(long msgNum, long timeGenerated)
          Creates a dynamic message record holding message-record and time-generated values.
 
Method Summary
 long getMsgNum()
          Returns the message number value.
 long getTimeGenerated()
          Returns the time-generated value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QWStaticMsgNumTimeRec

public QWStaticMsgNumTimeRec(long msgNum,
                             long timeGenerated)
Creates a dynamic message record holding message-record and time-generated values.

Parameters:
msgNum - the message number to use.
timeGenerated - the time-generated value to use.
Method Detail

getMsgNum

public long getMsgNum()
Returns the message number value. This method is needed to implemented the 'QWMsgNumTimeRec' interface.

Specified by:
getMsgNum in interface QWMsgNumTimeRec
Returns:
The message number value.

getTimeGenerated

public long getTimeGenerated()
Returns the time-generated value. This method is needed to implemented the 'QWMsgNumTimeRec' interface.

Specified by:
getTimeGenerated in interface QWMsgNumTimeRec
Returns:
The time-generated value, in milliseconds since 1/1/1970.