net.floodlightcontroller.packet
Class LLDPTLV
java.lang.Object
net.floodlightcontroller.packet.LLDPTLV
- Direct Known Subclasses:
- LLDPOrganizationalTLV
public class LLDPTLV
- extends java.lang.Object
- Author:
- David Erickson (daviderickson@cs.stanford.edu)
Field Summary |
protected short |
length
|
protected byte |
type
|
protected byte[] |
value
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
type
protected byte type
length
protected short length
value
protected byte[] value
LLDPTLV
public LLDPTLV()
getType
public byte getType()
- Returns:
- the type
setType
public LLDPTLV setType(byte type)
- Parameters:
type
- the type to set
getLength
public short getLength()
- Returns:
- the length
setLength
public LLDPTLV setLength(short length)
- Parameters:
length
- the length to set
getValue
public byte[] getValue()
- Returns:
- the value
setValue
public LLDPTLV setValue(byte[] value)
- Parameters:
value
- the value to set
serialize
public byte[] serialize()
deserialize
public LLDPTLV deserialize(java.nio.ByteBuffer bb)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object