Package com.dsi.ant.message
Class Timestamp
java.lang.Object
com.dsi.ant.message.Timestamp
The container for the timestamp information.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The message content offset to the timestamp valuestatic final int
The number of bytes used for timestamp valuestatic final byte
The number of bytes used for timestamp information -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
OFFSET_RX_TIMESTAMP
public static final int OFFSET_RX_TIMESTAMPThe message content offset to the timestamp value- Since:
- 4.0
- See Also:
-
SIZE_RX_TIMESTAMP
public static final int SIZE_RX_TIMESTAMPThe number of bytes used for timestamp value- Since:
- 4.0
- See Also:
-
SIZE_TIMESTAMP
public static final byte SIZE_TIMESTAMPThe number of bytes used for timestamp information- Since:
- 4.0
- See Also:
-
-
Constructor Details
-
Timestamp
public Timestamp(byte[] messageContent, int startOffset) Constructs TimeStamp from the message content- Parameters:
messageContent
- The byte array of the message content.startOffset
- The offset to timestamp data- Since:
- 4.0
-
Timestamp
public Timestamp(int rxTimestamp) Constructs Timestamp from the given value- Parameters:
rxTimestamp
- The value for the timestamp.- Since:
- 4.0
-
-
Method Details
-
getRxTimestamp
public int getRxTimestamp()Gets the timestamp for when this message was received.- Returns:
- The timestamp for the received message.
- Since:
- 4.0
-
hashCode
public int hashCode() -
equals
-
toString
-