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 intMAX_MPLS-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMplsLabel(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MplsLabelmplsLabel(int value)static MplsLabelmplsLabel(java.lang.String value)Creates a MplsLabel object using the supplied decimal string.inttoInt()java.lang.StringtoString()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:IdentifierReturns a string representation of a DeviceKeyId.- Overrides:
toStringin classIdentifier<java.lang.Integer>- Returns:
- string
-
-