Package org.onlab.packet
Class TpPort
- java.lang.Object
- 
- org.onlab.packet.TpPort
 
- 
 public class TpPort extends Object Representation of a transport layer port.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedTpPort(int value)Constructs a new TpPort.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()inttoInt()Returns the integer value for this transport port.StringtoString()static TpPorttpPort(int value)Converts an integer into a TpPort.
 
- 
- 
- 
Field Detail- 
MAX_PORTpublic static final int MAX_PORT - See Also:
- Constant Field Values
 
 - 
MIN_PORTpublic static final int MIN_PORT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
tpPortpublic static TpPort tpPort(int value) Converts an integer into a TpPort.- Parameters:
- value- an integer representing the transport layer port
- Returns:
- a TpPort
- Throws:
- IllegalArgumentException- if the value is invalid
 
 - 
toIntpublic int toInt() Returns the integer value for this transport port.- Returns:
- an integer value
 
 
- 
 
-