public class TpPort
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PORT |
static int |
MIN_PORT |
Modifier | Constructor and Description |
---|---|
protected |
TpPort(int value)
Constructs a new TpPort.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
toInt()
Returns the integer value for this transport port.
|
java.lang.String |
toString() |
static TpPort |
tpPort(int value)
Converts an integer into a TpPort.
|
public static final int MAX_PORT
public static final int MIN_PORT
protected TpPort(int value)
value
- the transport layer portpublic static TpPort tpPort(int value)
value
- an integer representing the transport layer portjava.lang.IllegalArgumentException
- if the value is invalidpublic int toInt()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object