class RipInternalRoute extends RipRoute {

  @Override
  public boolean equals(@Nullable Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof RipRoute)) {
      return false;
    }
    RipRoute other = (RipRoute) o;
    return _network.equals(other._network)
        && _admin == other._admin
        && _metric == other._metric
        && _nextHopIp.equals(other._nextHopIp)
        && getNonForwarding() == other.getNonForwarding()
        && getNonRouting() == other.getNonRouting()
        && _tag == other._tag;
  }

  @JsonCreator public  RipInternalRoute(
      @JsonProperty(PROP_NETWORK) Prefix network,
      @JsonProperty(PROP_NEXT_HOP_IP) Ip nextHopIp,
      @JsonProperty(PROP_ADMINISTRATIVE_COST) int admin,
      @JsonProperty(PROP_METRIC) long metric,
      @JsonProperty(PROP_TAG) long tag);

}