public class LinkLocalRemoteIdentifiersTlv extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
TYPE |
| Constructor and Description |
|---|
LinkLocalRemoteIdentifiersTlv(int linkLocalIdentifer,
int linkRemoteIdentifer)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
int |
getLinkLocalIdentifier()
Returns link local Identifer.
|
int |
getLinkRemoteIdentifier()
Returns link remote Identifer.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static LinkLocalRemoteIdentifiersTlv |
of(int linkLocalIdentifer,
int linkRemoteIdentifer)
Returns object of this class with specified link local identifer and link remote identifer.
|
static LinkLocalRemoteIdentifiersTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of LinkLocalRemoteIdentifiersTlv.
|
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 TYPE
public LinkLocalRemoteIdentifiersTlv(int linkLocalIdentifer,
int linkRemoteIdentifer)
linkLocalIdentifer - link local IdentiferlinkRemoteIdentifer - link remote Identiferpublic int getLinkRemoteIdentifier()
public int getLinkLocalIdentifier()
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 static LinkLocalRemoteIdentifiersTlv read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channelBufferpublic static LinkLocalRemoteIdentifiersTlv of(int linkLocalIdentifer, int linkRemoteIdentifer)
linkLocalIdentifer - link local identifierlinkRemoteIdentifer - link remote identifierpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectpublic java.lang.String toString()
toString in class java.lang.Object