- Author:
- iacopo
Constructor Summary |
MyMedId(char type,
long timestamp,
java.lang.String userId)
Public constructor. |
Method Summary |
java.nio.ByteBuffer |
AsByteBuffer()
Return a ByteBuffer representation of the ReportId |
boolean |
equals(java.lang.Object o)
If the object is a MyMedId and it is equal to this returns true,
else return false. |
long |
getTimestamp()
|
char |
getType()
|
java.lang.String |
getUserId()
|
static MyMedId |
parseByteBuffer(java.nio.ByteBuffer arg0)
Parse the ByteBuffer argument and returns a ReportId object |
static MyMedId |
parseString(java.lang.String arg0)
Parse the ByteBuffer argument and returns a ReportId object |
java.lang.String |
toString()
Returns a String representation of the Id |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
MyMedId
public MyMedId(char type,
long timestamp,
java.lang.String userId)
throws java.lang.IllegalArgumentException
- Public constructor.
- Parameters:
timestamp
- userId
-
- Throws:
java.lang.IllegalArgumentException
toString
public java.lang.String toString()
- Returns a String representation of the Id
- Overrides:
toString
in class java.lang.Object
AsByteBuffer
public java.nio.ByteBuffer AsByteBuffer()
- Return a ByteBuffer representation of the ReportId
- Returns:
parseByteBuffer
public static MyMedId parseByteBuffer(java.nio.ByteBuffer arg0)
throws WrongFormatException
- Parse the ByteBuffer argument and returns a ReportId object
- Returns:
- ReportIdObject
- Throws:
WrongFormatException
parseString
public static MyMedId parseString(java.lang.String arg0)
throws WrongFormatException
- Parse the ByteBuffer argument and returns a ReportId object
- Returns:
- ReportIdObject
- Throws:
WrongFormatException
getUserId
public java.lang.String getUserId()
getTimestamp
public long getTimestamp()
getType
public char getType()
equals
public boolean equals(java.lang.Object o)
- If the object is a MyMedId and it is equal to this returns true,
else return false.
- Overrides:
equals
in class java.lang.Object