net.floodlightcontroller.packet
Class LLDPTLV

java.lang.Object
  extended by 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
           
 
Constructor Summary
LLDPTLV()
           
 
Method Summary
 LLDPTLV deserialize(java.nio.ByteBuffer bb)
           
 boolean equals(java.lang.Object obj)
           
 short getLength()
           
 byte getType()
           
 byte[] getValue()
           
 int hashCode()
           
 byte[] serialize()
           
 LLDPTLV setLength(short length)
           
 LLDPTLV setType(byte type)
           
 LLDPTLV setValue(byte[] value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected byte type

length

protected short length

value

protected byte[] value
Constructor Detail

LLDPTLV

public LLDPTLV()
Method Detail

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