Package org.onlab.packet
Class MplsLabel
- java.lang.Object
-
- org.onlab.util.Identifier<java.lang.Integer>
-
- org.onlab.packet.MplsLabel
-
public final class MplsLabel extends Identifier<java.lang.Integer>
Representation of a MPLS label.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_MPLS
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MplsLabel(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MplsLabel
mplsLabel(int value)
static MplsLabel
mplsLabel(java.lang.String value)
Creates a MplsLabel object using the supplied decimal string.int
toInt()
java.lang.String
toString()
Returns a string representation of a DeviceKeyId.-
Methods inherited from class org.onlab.util.Identifier
equals, hashCode, id
-
-
-
-
Field Detail
-
MAX_MPLS
public static final int MAX_MPLS
- See Also:
- Constant Field Values
-
-
Method Detail
-
mplsLabel
public static MplsLabel mplsLabel(int value)
-
mplsLabel
public static MplsLabel mplsLabel(java.lang.String value)
Creates a MplsLabel object using the supplied decimal string.- Parameters:
value
- the MPLS identifier expressed as string- Returns:
- Mplslabel object created from the string
-
toInt
public int toInt()
-
toString
public java.lang.String toString()
Description copied from class:Identifier
Returns a string representation of a DeviceKeyId.- Overrides:
toString
in classIdentifier<java.lang.Integer>
- Returns:
- string
-
-