public class BgpEvpnLabel extends java.lang.Object implements java.lang.Comparable<BgpEvpnLabel>
| Modifier and Type | Field and Description |
|---|---|
static int |
MPLS_LABEL_LENGTH |
| Constructor and Description |
|---|
BgpEvpnLabel()
Resets fields.
|
BgpEvpnLabel(byte[] bgpEvpnLabel)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BgpEvpnLabel mplsLabel) |
boolean |
equals(java.lang.Object obj) |
byte[] |
getMplsLabel()
Returns mpls label.
|
int |
hashCode() |
static BgpEvpnLabel |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads mpls label from channelBuffer.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
writes mpls label into channelBuffer.
|
public static final int MPLS_LABEL_LENGTH
public BgpEvpnLabel()
public BgpEvpnLabel(byte[] bgpEvpnLabel)
bgpEvpnLabel - mpls labelpublic static BgpEvpnLabel read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channelBufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channelBufferpublic byte[] getMplsLabel()
public int compareTo(BgpEvpnLabel mplsLabel)
compareTo in interface java.lang.Comparable<BgpEvpnLabel>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object