public class Timestamp
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
OFFSET_RX_TIMESTAMP
The message content offset to the timestamp value
|
static int |
SIZE_RX_TIMESTAMP
The number of bytes used for timestamp value
|
static byte |
SIZE_TIMESTAMP
The number of bytes used for timestamp information
|
| Constructor and Description |
|---|
Timestamp(byte[] messageContent,
int startOffset)
Constructs TimeStamp from the message content
|
Timestamp(int rxTimestamp)
Constructs Timestamp from the given value
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getRxTimestamp()
Gets the timestamp for when this message was received.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final int OFFSET_RX_TIMESTAMP
public static final int SIZE_RX_TIMESTAMP
public static final byte SIZE_TIMESTAMP
public Timestamp(byte[] messageContent,
int startOffset)
messageContent - The byte array of the message content.startOffset - The offset to timestamp datapublic Timestamp(int rxTimestamp)
rxTimestamp - The value for the timestamp.public int getRxTimestamp()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.