public class ParticipantId extends Object
Constructor and Description |
---|
ParticipantId()
Creates a new random id.
|
ParticipantId(byte[] bytes)
Creates an ID from a byte representation.
|
ParticipantId(String sid)
Parses an id from its string form generated with
toString() . |
public ParticipantId()
public ParticipantId(byte[] bytes)
bytes
- byte representation of the id.public ParticipantId(String sid)
toString()
.sid
- string representationIllegalArgumentException
- invalid string formatpublic byte[] toByteArray()
protected UUID getUUID()
Copyright © 2018 CoR-Lab. All rights reserved.