Package org.onlab.packet
Class TpPort
- java.lang.Object
-
- org.onlab.packet.TpPort
-
public class TpPort extends java.lang.ObjectRepresentation of a transport layer port.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTpPort(int value)Constructs a new TpPort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()inttoInt()Returns the integer value for this transport port.java.lang.StringtoString()static TpPorttpPort(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:
java.lang.IllegalArgumentException- if the value is invalid
-
toInt
public int toInt()
Returns the integer value for this transport port.- Returns:
- an integer value
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-