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, parse
public 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 IFSSHTTPBSerializable
serializeToByteList
in class BasicObject
IOException
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
doDeserializeFromByteArray
in class BasicObject
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.IOException
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.