Class SerialNumber

    • Field Detail

      • type

        public int type
      • guid

        public UUID guid
      • value

        public long value
    • Constructor Detail

      • SerialNumber

        public SerialNumber​(UUID identifier,
                            long value)
        Initializes a new instance of the SerialNumber class with specified values.
        Parameters:
        identifier - Specify the Guid value of the serialNumber.
        value - Specify the value of the serialNumber.
      • SerialNumber

        public SerialNumber​(SerialNumber sn)
        Initializes a new instance of the SerialNumber class, this is the copy constructor.
        Parameters:
        sn - Specify the serial number where copy from.
      • SerialNumber

        public SerialNumber()
        Initializes a new instance of the SerialNumber class, this is default contractor
    • Method Detail

      • doDeserializeFromByteArray

        protected int doDeserializeFromByteArray​(byte[] byteArray,
                                                 int startIndex)
                                          throws IOException
        This method is used to deserialize the SerialNumber 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 SerialNumber basic object.
        Throws:
        IOException