public class WideCommunityInteger extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE |
| Constructor and Description |
|---|
WideCommunityInteger(List<Integer> integer)
Creates an instance of wide community integer subtlv.
|
| 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() |
List<Integer> |
integer()
Returns wide community subtlv integer.
|
static WideCommunityInteger |
of(List<Integer> integer)
Returns object of this class with specified values.
|
static WideCommunityInteger |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of WideCommunityInteger.
|
void |
setInteger(List<Integer> integer)
Sets wide community subtlv integer.
|
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 WideCommunityInteger of(List<Integer> integer)
integer - wide community subtlv integerpublic List<Integer> integer()
public void setInteger(List<Integer> integer)
integer - wide community subtlv integerpublic int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static WideCommunityInteger read(org.jboss.netty.buffer.ChannelBuffer c) throws BgpParseException
c - ChannelBufferBgpParseException - on read errorpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectpublic short getType()
BgpValueTypegetType in interface BgpValueType