public class WideCommunityParameter extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
WideCommunityParameter(java.util.List<BgpValueType> parameterTlv)
Creates an instance of wide community parameter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static WideCommunityParameter |
of(java.util.List<BgpValueType> parameterTlv)
Returns object of this class with specified values.
|
java.util.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(java.util.List<BgpValueType> parameterTlv)
Sets wide community parameter.
|
java.lang.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(java.util.List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic static WideCommunityParameter of(java.util.List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic java.util.List<BgpValueType> parameterTlv()
public void setParameterTlv(java.util.List<BgpValueType> parameterTlv)
parameterTlv - wide community parameterpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic 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 java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object