public class PortRange
extends java.lang.Object
implements java.io.Serializable
| コンストラクタと説明 |
|---|
PortRange() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFrom()
The first port in the range.
|
java.lang.Integer |
getTo()
The last port in the range.
|
int |
hashCode() |
void |
setFrom(java.lang.Integer from)
The first port in the range.
|
void |
setTo(java.lang.Integer to)
The last port in the range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PortRange |
withFrom(java.lang.Integer from)
The first port in the range.
|
PortRange |
withTo(java.lang.Integer to)
The last port in the range.
|
public java.lang.Integer getFrom()
tcp
or udp for the protocol.tcp
or udp for the protocol.public void setFrom(java.lang.Integer from)
tcp
or udp for the protocol.from - The first port in the range. Required if specifying tcp
or udp for the protocol.public PortRange withFrom(java.lang.Integer from)
tcp
or udp for the protocol.
Returns a reference to this object so that method calls can be chained together.
from - The first port in the range. Required if specifying tcp
or udp for the protocol.public java.lang.Integer getTo()
tcp or
udp for the protocol.tcp or
udp for the protocol.public void setTo(java.lang.Integer to)
tcp or
udp for the protocol.to - The last port in the range. Required if specifying tcp or
udp for the protocol.public PortRange withTo(java.lang.Integer to)
tcp or
udp for the protocol.
Returns a reference to this object so that method calls can be chained together.
to - The last port in the range. Required if specifying tcp or
udp for the protocol.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object