public class IcmpTypeCode
extends java.lang.Object
implements java.io.Serializable
| コンストラクタと説明 |
|---|
IcmpTypeCode() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCode()
For the ICMP protocol, the ICMP code.
|
java.lang.Integer |
getType()
For the ICMP protocol, the ICMP type.
|
int |
hashCode() |
void |
setCode(java.lang.Integer code)
For the ICMP protocol, the ICMP code.
|
void |
setType(java.lang.Integer type)
For the ICMP protocol, the ICMP type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IcmpTypeCode |
withCode(java.lang.Integer code)
For the ICMP protocol, the ICMP code.
|
IcmpTypeCode |
withType(java.lang.Integer type)
For the ICMP protocol, the ICMP type.
|
public java.lang.Integer getType()
-1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.-1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.public void setType(java.lang.Integer type)
-1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.type - For the ICMP protocol, the ICMP type. A value of -1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.public IcmpTypeCode withType(java.lang.Integer type)
-1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.
Returns a reference to this object so that method calls can be chained together.
type - For the ICMP protocol, the ICMP type. A value of -1 is a
wildcard meaning all types. Required if specifying icmp
for the protocol.public java.lang.Integer getCode()
-1 is a
wildcard meaning all codes. Required if specifying icmp
for the protocol.-1 is a
wildcard meaning all codes. Required if specifying icmp
for the protocol.public void setCode(java.lang.Integer code)
-1 is a
wildcard meaning all codes. Required if specifying icmp
for the protocol.code - For the ICMP protocol, the ICMP code. A value of -1 is a
wildcard meaning all codes. Required if specifying icmp
for the protocol.public IcmpTypeCode withCode(java.lang.Integer code)
-1 is a
wildcard meaning all codes. Required if specifying icmp
for the protocol.
Returns a reference to this object so that method calls can be chained together.
code - For the ICMP protocol, the ICMP code. A value of -1 is a
wildcard meaning all codes. Required if specifying icmp
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