public class IcmpTypeCode
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the ICMP type and code.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
code
The ICMP type.
|
private java.lang.Integer |
type
The ICMP code.
|
Constructor and Description |
---|
IcmpTypeCode() |
Modifier and Type | Method and Description |
---|---|
IcmpTypeCode |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCode()
The ICMP type.
|
java.lang.Integer |
getType()
The ICMP code.
|
int |
hashCode() |
void |
setCode(java.lang.Integer code)
The ICMP type.
|
void |
setType(java.lang.Integer type)
The ICMP code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IcmpTypeCode |
withCode(java.lang.Integer code)
The ICMP type.
|
IcmpTypeCode |
withType(java.lang.Integer type)
The ICMP code.
|
private java.lang.Integer type
The ICMP code. A value of -1 means all codes for the specified ICMP type.
private java.lang.Integer code
The ICMP type. A value of -1 means all types.
public void setType(java.lang.Integer type)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
type
- The ICMP code. A value of -1 means all codes for the specified
ICMP type.public java.lang.Integer getType()
The ICMP code. A value of -1 means all codes for the specified ICMP type.
public IcmpTypeCode withType(java.lang.Integer type)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
type
- The ICMP code. A value of -1 means all codes for the specified
ICMP type.public void setCode(java.lang.Integer code)
The ICMP type. A value of -1 means all types.
code
- The ICMP type. A value of -1 means all types.public java.lang.Integer getCode()
The ICMP type. A value of -1 means all types.
public IcmpTypeCode withCode(java.lang.Integer code)
The ICMP type. A value of -1 means all types.
code
- The ICMP type. A value of -1 means all types.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IcmpTypeCode clone()
clone
in class java.lang.Object