class SessionMatchExpr {

  @Override
  public boolean equals(@Nullable Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof SessionMatchExpr)) {
      return false;
    }
    SessionMatchExpr rhs = (SessionMatchExpr) o;
    return Objects.equals(_ipProtocol, rhs._ipProtocol)
        && Objects.equals(_srcIp, rhs._srcIp)
        && Objects.equals(_dstIp, rhs._dstIp)
        && Objects.equals(_srcPort, rhs._srcPort)
        && Objects.equals(_dstPort, rhs._dstPort);
  }

  public  SessionMatchExpr(
      IpProtocol ipProtocol,
      Ip srcIp,
      Ip dstIp,
      @Nullable Integer srcPort,
      @Nullable Integer dstPort);

}