@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 OFOxmIcmpv4TypeMasked readFrom(ByteBuf bb) throws OFParseError {
      // fixed value property typeLen == 0x80002702L
      int typeLen = bb.readInt();
      if (typeLen != (int) 0x80002702)
        throw new OFParseError("Wrong typeLen: Expected=0x80002702L(0x80002702L), got=" + typeLen);
      ICMPv4Type value = ICMPv4Type.readByte(bb);
      ICMPv4Type mask = ICMPv4Type.readByte(bb);

      OFOxmIcmpv4TypeMaskedVer12 oxmIcmpv4TypeMaskedVer12 =
          new OFOxmIcmpv4TypeMaskedVer12(value, mask);
      if (logger.isTraceEnabled()) logger.trace("readFrom - read={}", oxmIcmpv4TypeMaskedVer12);
      return oxmIcmpv4TypeMaskedVer12;
    }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    OFOxmIcmpv4TypeMaskedVer12 other = (OFOxmIcmpv4TypeMaskedVer12) 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;
  }