public class WideCommunityInteger extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE |
| Constructor and Description |
|---|
WideCommunityInteger(java.util.List<java.lang.Integer> integer)
Creates an instance of wide community integer subtlv.
|
| 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() |
java.util.List<java.lang.Integer> |
integer()
Returns wide community subtlv integer.
|
static WideCommunityInteger |
of(java.util.List<java.lang.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(java.util.List<java.lang.Integer> integer)
Sets wide community subtlv integer.
|
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 short TYPE
public WideCommunityInteger(java.util.List<java.lang.Integer> integer)
integer - integerpublic static WideCommunityInteger of(java.util.List<java.lang.Integer> integer)
integer - wide community subtlv integerpublic java.util.List<java.lang.Integer> integer()
public void setInteger(java.util.List<java.lang.Integer> integer)
integer - wide community subtlv integerpublic 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 WideCommunityInteger read(org.jboss.netty.buffer.ChannelBuffer c) throws BgpParseException
c - ChannelBufferBgpParseException - on read errorpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectpublic short getType()
BgpValueTypegetType in interface BgpValueType