@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof Slow)) { return false; } final Slow other = (Slow) obj; return this.subtype == other.subtype; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.icmpType; result = prime * result + this.icmpCode; result = prime * result + this.checksum; return result; }
@Override public void resetChecksum() { this.checksum = 0; super.resetChecksum(); }
byte[] data = serialize(); try { Deserializer deserializer = (Deserializer) deserializerFactory.invoke(this);
@Override public int hashCode() { final int prime = 3889; int result = super.hashCode(); result = prime * result + this.code; result = prime * result + this.identifier; result = prime * result + this.length; result = prime * result + this.type; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ICMPEcho)) { return false; } final ICMPEcho other = (ICMPEcho) obj; if (this.identifier != other.identifier) { return false; } if (this.sequenceNum != other.sequenceNum) { return false; } return true; }
@Override public void resetChecksum() { this.checksum = 0; super.resetChecksum(); }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.identifier; result = prime * result + this.sequenceNum; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof EncapSecurityPayload)) { return false; } final EncapSecurityPayload other = (EncapSecurityPayload) obj; if (this.securityParamIndex != other.securityParamIndex) { return false; } if (this.sequence != other.sequence) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.checksum; result = prime * result + this.destinationPort; result = prime * result + this.length; result = prime * result + this.sourcePort; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof PIM)) { return false; } final PIM other = (PIM) obj; if (this.type != other.type) { return false; } if (this.version != other.version) { return false; } if (this.checksum != other.checksum) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.securityParamIndex; result = prime * result + this.sequence; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ICMP)) { return false; } final ICMP other = (ICMP) obj; if (this.icmpType != other.icmpType) { return false; } if (this.icmpCode != other.icmpCode) { return false; } if (this.checksum != other.checksum) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.type; result = prime * result + this.version; result = prime * result + this.checksum; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ICMP6)) { return false; } final ICMP6 other = (ICMP6) obj; if (this.icmpType != other.icmpType) { return false; } if (this.icmpCode != other.icmpCode) { return false; } if (this.checksum != other.checksum) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.nextHeader; result = prime * result + this.headerExtLength; for (byte b : this.options) { result = prime * result + b; } return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof Fragment)) { return false; } final Fragment other = (Fragment) obj; if (this.nextHeader != other.nextHeader) { return false; } if (this.fragmentOffset != other.fragmentOffset) { return false; } if (this.moreFragment != other.moreFragment) { return false; } if (this.identification != other.identification) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.icmpType; result = prime * result + this.icmpCode; result = prime * result + this.checksum; return result; }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof UDP)) { return false; } final UDP other = (UDP) obj; if (this.checksum != other.checksum) { return false; } if (this.destinationPort != other.destinationPort) { return false; } if (this.length != other.length) { return false; } if (this.sourcePort != other.sourcePort) { return false; } return true; }
@Override public int hashCode() { final int prime = 5807; int result = super.hashCode(); result = prime * result + this.checksum; result = prime * result + this.destinationPort; result = prime * result + this.sourcePort; return result; }