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 Summary
Constructors Modifier Constructor Description protected
TpPort(int value)
Constructs a new TpPort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
int
toInt()
Returns the integer value for this transport port.String
toString()
static TpPort
tpPort(int value)
Converts an integer into a TpPort.
-
-
-
Field Detail
-
MAX_PORT
public static final int MAX_PORT
- See Also:
- Constant Field Values
-
MIN_PORT
public static final int MIN_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
tpPort
public 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
-
toInt
public int toInt()
Returns the integer value for this transport port.- Returns:
- an integer value
-
-