public class Guid
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Guid |
NULL_GUID
Special 'null' GUID (all zeroes)
|
Constructor and Description |
---|
Guid()
Creates a new, random Guid
|
Guid(int data1,
short data2,
short data3,
byte[] data4)
Creates a new Guid by specifying each data element individually
|
Guid(java.lang.String str)
Creates a new Guid by parsing the given string, which must be in the format:
01234567-0123-0123-0102-030405060708 See OPC-UA Spec Part 6 (Mappings) Section 6.3.1.8 for details |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getData1() |
short |
getData2() |
short |
getData3() |
byte[] |
getData4() |
int |
hashCode() |
boolean |
isNull()
Returns true if this Guid is the special null Guid (all zeroes)
|
java.lang.String |
toString() |
public static final Guid NULL_GUID
public Guid(java.lang.String str)
str
- public Guid(int data1, short data2, short data3, byte[] data4)
public Guid()
public boolean isNull()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getData1()
public short getData2()
public short getData3()
public byte[] getData4()