public class WideCommunityParameter extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
WideCommunityParameter(List<BgpValueType> parameterTlv)
Creates an instance of wide community parameter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static WideCommunityParameter |
of(List<BgpValueType> parameterTlv)
Returns object of this class with specified values.
|
List<BgpValueType> |
parameterTlv()
Returns wide community parameter.
|
static WideCommunityParameter |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of WideCommunityParameter.
|
void |
setParameterTlv(List<BgpValueType> parameterTlv)
Sets wide community parameter.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte TYPE
public WideCommunityParameter(List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic static WideCommunityParameter of(List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic List<BgpValueType> parameterTlv()
public void setParameterTlv(List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static WideCommunityParameter read(org.jboss.netty.buffer.ChannelBuffer c) throws BgpParseException
c - ChannelBufferBgpParseException - on read errorpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object