public class BgpLinkAttrSrlg extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
ATTRNODE_SRLG |
static short |
SIZE |
| Constructor and Description |
|---|
BgpLinkAttrSrlg(java.util.List<java.lang.Integer> sRlg)
Constructor to initialize the date.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Integer> |
attrSrlg()
Returns the Shared Risk link group data.
|
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 BgpLinkAttrSrlg |
of(java.util.ArrayList<java.lang.Integer> sRlg)
Returns object of this class with specified values.
|
static BgpLinkAttrSrlg |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes Shared Risk link group data.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short ATTRNODE_SRLG
public static final short SIZE
public BgpLinkAttrSrlg(java.util.List<java.lang.Integer> sRlg)
sRlg - Shared Risk link group datapublic static BgpLinkAttrSrlg of(java.util.ArrayList<java.lang.Integer> sRlg)
sRlg - Shared Risk link group datapublic static BgpLinkAttrSrlg read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrSrlgpublic java.util.List<java.lang.Integer> attrSrlg()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic 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 cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object