コード例 #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    OFOxmArpTpaMaskedVer12 other = (OFOxmArpTpaMaskedVer12) 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;
  }
コード例 #2
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    OFActionSetNwDstVer11 other = (OFActionSetNwDstVer11) obj;

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