public class WideCommunityTarget extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
WideCommunityTarget(List<BgpValueType> targetTlv)
Creates an instance of Wide community targets.
|
| 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 WideCommunityTarget |
of(List<BgpValueType> targetTlv)
Returns object of this class with specified values.
|
static WideCommunityTarget |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of WideCommunityTarget.
|
void |
setTargetTlv(List<BgpValueType> targetTlv)
Sets wide community target.
|
List<BgpValueType> |
targetTlv()
Returns wide community targets.
|
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 WideCommunityTarget(List<BgpValueType> targetTlv)
targetTlv - wide community targets to matchpublic static WideCommunityTarget of(List<BgpValueType> targetTlv)
targetTlv - wide community targetpublic List<BgpValueType> targetTlv()
public void setTargetTlv(List<BgpValueType> targetTlv)
targetTlv - wide community targets to matchpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static WideCommunityTarget 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