public class SerialNumber extends BasicObject
| Constructor and Description | 
|---|
| SerialNumber()Initializes a new instance of the SerialNumber class, this is default contractor | 
| SerialNumber(SerialNumber sn)Initializes a new instance of the SerialNumber class, this is the copy constructor. | 
| SerialNumber(UUID identifier,
            long value)Initializes a new instance of the SerialNumber class with specified values. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | doDeserializeFromByteArray(byte[] byteArray,
                          int startIndex)This method is used to deserialize the SerialNumber basic object from the specified byte array and start index. | 
| List<Byte> | serializeToByteList()This method is used to convert the element of SerialNumber basic object into a byte List. | 
deserializeFromByteArray, parsepublic int type
public UUID guid
public long value
public SerialNumber(UUID identifier, long value)
identifier - Specify the Guid value of the serialNumber.value - Specify the value of the serialNumber.public SerialNumber(SerialNumber sn)
sn - Specify the serial number where copy from.public SerialNumber()
public List<Byte> serializeToByteList() throws IOException
serializeToByteList in interface IFSSHTTPBSerializableserializeToByteList in class BasicObjectIOExceptionprotected int doDeserializeFromByteArray(byte[] byteArray,
                                         int startIndex)
                                  throws IOException
doDeserializeFromByteArray in class BasicObjectbyteArray - Specify the byte array.startIndex - Specify the start index from the byte array.IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.