@Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + ((value == null) ? 0 : value.hashCode());
    result = prime * result + ((mask == null) ? 0 : mask.hashCode());
    return result;
  }
    @Override
    public OFOxmIcmpv4CodeMasked readFrom(ByteBuf bb) throws OFParseError {
      // fixed value property typeLen == 0x80002902L
      int typeLen = bb.readInt();
      if (typeLen != (int) 0x80002902)
        throw new OFParseError("Wrong typeLen: Expected=0x80002902L(0x80002902L), got=" + typeLen);
      ICMPv4Code value = ICMPv4Code.readByte(bb);
      ICMPv4Code mask = ICMPv4Code.readByte(bb);

      OFOxmIcmpv4CodeMaskedVer12 oxmIcmpv4CodeMaskedVer12 =
          new OFOxmIcmpv4CodeMaskedVer12(value, mask);
      if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmIcmpv4CodeMaskedVer12);
      return oxmIcmpv4CodeMaskedVer12;
    }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    OFOxmIcmpv4CodeMaskedVer12 other = (OFOxmIcmpv4CodeMaskedVer12) obj;

    if (value == null) {
      if (other.value != null) return false;
    } else if (!value.equals(other.value)) return false;
    if (mask == null) {
      if (other.mask != null) return false;
    } else if (!mask.equals(other.mask)) return false;
    return true;
  }