Package org.onlab.packet
Class MplsLabel
- java.lang.Object
 - 
- org.onlab.util.Identifier<Integer>
 - 
- org.onlab.packet.MplsLabel
 
 
 
- 
public final class MplsLabel extends Identifier<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(String value)Creates a MplsLabel object using the supplied decimal string.inttoInt()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(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 String toString()
Description copied from class:IdentifierReturns a string representation of a DeviceKeyId.- Overrides:
 toStringin classIdentifier<Integer>- Returns:
 - string
 
 
 - 
 
 -