@Test public void testToBuilder() { ConnectedRoute cr = new ConnectedRoute(Prefix.parse("1.1.1.0/24"), "Ethernet0", 3, 4L); assertThat(cr, equalTo(cr.toBuilder().build())); }
@Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setAdmin(_admin) .setNextHopInterface(_nextHopInterface) .setNonRouting(getNonRouting()) .setNonForwarding(getNonForwarding()) .setTag(_tag); }
ConnectedRoute extends AbstractRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setAdmin(_admin) .setNextHopInterface(_nextHopInterface) .setNonRouting(getNonRouting()) .setNonForwarding(getNonForwarding()) .setTag(_tag); } }
ConnectedRoute extends AbstractRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setAdmin(_admin) .setNextHopInterface(_nextHopInterface) .setNonRouting(getNonRouting()) .setNonForwarding(getNonForwarding()) .setTag(_tag); } ConnectedRoute(Prefix network, String nextHopInterface);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost, long tag); }
ConnectedRoute extends AbstractRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setAdmin(_admin) .setNextHopInterface(_nextHopInterface) .setNonRouting(getNonRouting()) .setNonForwarding(getNonForwarding()) .setTag(_tag); } ConnectedRoute(Prefix network, String nextHopInterface);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost, long tag); @Override String toString(); @Override Long getMetric(); @Nonnull @JsonIgnore(false) @JsonProperty(PROP_NEXT_HOP_INTERFACE) @Override String getNextHopInterface(); @Nonnull @Override Ip getNextHopIp(); @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(Object o); @Override int hashCode(); }
ConnectedRoute extends AbstractRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setAdmin(_admin) .setNextHopInterface(_nextHopInterface) .setNonRouting(getNonRouting()) .setNonForwarding(getNonForwarding()) .setTag(_tag); } ConnectedRoute(Prefix network, String nextHopInterface);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost);  ConnectedRoute(Prefix network, String nextHopInterface, int adminCost, long tag); @Override String toString(); @Override Long getMetric(); @Nonnull @JsonIgnore(false) @JsonProperty(PROP_NEXT_HOP_INTERFACE) @Override String getNextHopInterface(); @Nonnull @Override Ip getNextHopIp(); @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(Object o); @Override int hashCode();  }