public class AreaIDTlv extends Object implements BgpValueType
| Constructor and Description |
|---|
AreaIDTlv(int areaID)
Constructor to initialize areaID.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
int |
getAreaID()
Returns opaque value of area id.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static AreaIDTlv |
of(int areaID)
Returns object of this class with specified areaID.
|
static AreaIDTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of AreaIDTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final short LENGTH
public AreaIDTlv(int areaID)
areaID - of BGP AreaID Tlvpublic static AreaIDTlv of(int areaID)
areaID - opaque value of area idpublic int getAreaID()
public int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static AreaIDTlv read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - ChannelBufferpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.