public class LLDPTLV extends Object
Modifier and Type | Field and Description |
---|---|
protected short |
length |
static int |
MAX_LENGTH |
protected byte |
type |
protected byte[] |
value |
Constructor and Description |
---|
LLDPTLV() |
Modifier and Type | Method and Description |
---|---|
LLDPTLV |
deserialize(ByteBuffer bb) |
boolean |
equals(Object obj) |
short |
getLength() |
byte |
getType() |
byte[] |
getValue() |
int |
hashCode() |
byte[] |
serialize() |
LLDPTLV |
setLength(short length) |
LLDPTLV |
setType(byte type) |
LLDPTLV |
setValue(byte[] value) |
String |
toString() |
public static final int MAX_LENGTH
protected byte type
protected short length
protected byte[] value
public byte getType()
public LLDPTLV setType(byte type)
type
- the type to setpublic short getLength()
public LLDPTLV setLength(short length)
length
- the length to setpublic byte[] getValue()
public LLDPTLV setValue(byte[] value)
value
- the value to setpublic byte[] serialize()
public LLDPTLV deserialize(ByteBuffer bb) throws DeserializationException
DeserializationException