public class TripRecord
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
PV
PV which indicates the trip
|
protected Timestamp |
TIME_STAMP
the timestamp of the trip
|
Constructor and Description |
---|
TripRecord(java.lang.String pv,
java.sql.Timestamp sqlTimestamp)
Constructor
|
TripRecord(java.lang.String pv,
Timestamp timeStamp,
int value)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object tripRecord)
determine if the specified trip record is equal to this one
|
java.util.Date |
getDate()
Get the time stamp
|
static TripRecord |
getInstanceFromRecordMap(java.util.HashMap<java.lang.String,java.lang.Object> recordMap)
get the trip record from the record map
|
java.lang.String |
getPV()
Get the PV
|
java.sql.Timestamp |
getSQLTimestamp()
Get the time stamp
|
Timestamp |
getTimeStamp()
Get the time stamp
|
int |
getValue()
Get the value of the PV
|
int |
hashCode()
override hashCode to be consistent with equals()
|
static java.util.Comparator<TripRecord> |
pvComparator()
get the PV based comparator
|
static java.util.Comparator<TripRecord> |
timestampComparator()
get the timestamp based comparator
|
java.lang.String |
toString()
get a description of this record
|
protected final java.lang.String PV
protected final Timestamp TIME_STAMP
public TripRecord(java.lang.String pv, Timestamp timeStamp, int value)
public TripRecord(java.lang.String pv, java.sql.Timestamp sqlTimestamp)
public static TripRecord getInstanceFromRecordMap(java.util.HashMap<java.lang.String,java.lang.Object> recordMap)
public java.lang.String getPV()
public Timestamp getTimeStamp()
public java.util.Date getDate()
public java.sql.Timestamp getSQLTimestamp()
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object tripRecord)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.util.Comparator<TripRecord> timestampComparator()
public static java.util.Comparator<TripRecord> pvComparator()