Class ExGuid

    • Field Detail

      • ExtendedGUIDNullType

        public static final int ExtendedGUIDNullType
        Specify the extended GUID null type value.
        See Also:
        Constant Field Values
      • ExtendedGUID5BitUintType

        public static final int ExtendedGUID5BitUintType
        Specify the extended GUID 5 Bit int type value.
        See Also:
        Constant Field Values
      • ExtendedGUID10BitUintType

        public static final int ExtendedGUID10BitUintType
        Specify the extended GUID 10 Bit int type value.
        See Also:
        Constant Field Values
      • ExtendedGUID17BitUintType

        public static final int ExtendedGUID17BitUintType
        Specify the extended GUID 17 Bit int type value.
        See Also:
        Constant Field Values
      • ExtendedGUID32BitUintType

        public static final int ExtendedGUID32BitUintType
        Specify the extended GUID 32 Bit int type value.
        See Also:
        Constant Field Values
      • type

        public int type
      • value

        public int value
      • guid

        public UUID guid
    • Constructor Detail

      • ExGuid

        public ExGuid​(int value,
                      UUID identifier)
        Initializes a new instance of the ExGuid class with specified value.
        Parameters:
        value - Specify the ExGUID Value.
        identifier - Specify the ExGUID GUID value.
      • ExGuid

        public ExGuid​(ExGuid guid2)
        Initializes a new instance of the ExGuid class, this is the copy constructor.
        Parameters:
        guid2 - Specify the ExGuid instance where copies from.
      • ExGuid

        public ExGuid()
        Initializes a new instance of the ExGuid class, this is a default constructor.
    • Method Detail

      • equals

        public boolean equals​(Object obj)
        Override the Equals method.
        Overrides:
        equals in class Object
        Parameters:
        obj - Specify the object.
        Returns:
        Return true if equals, otherwise return false.
      • hashCode

        public int hashCode()
        Override the GetHashCode.
        Overrides:
        hashCode in class Object
        Returns:
        Return the hash value.
      • doDeserializeFromByteArray

        protected int doDeserializeFromByteArray​(byte[] byteArray,
                                                 int startIndex)
                                          throws IOException
        This method is used to deserialize the ExGuid basic object from the specified byte array and start index.
        Specified by:
        doDeserializeFromByteArray in class BasicObject
        Parameters:
        byteArray - Specify the byte array.
        startIndex - Specify the start index from the byte array.
        Returns:
        Return the length in byte of the ExGuid basic object.
        Throws:
        IOException