@Test public void testEquals() { new EqualsTester() .addEqualityGroup(5) .addEqualityGroup( new RedistributionPolicy(RoutingProtocolInstance.direct(), "map"), new RedistributionPolicy(RoutingProtocolInstance.direct(), "map")) .addEqualityGroup(new RedistributionPolicy(RoutingProtocolInstance.direct(), "map2")) .addEqualityGroup(new RedistributionPolicy(RoutingProtocolInstance.staticc(), "map")) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RedistributionPolicy)) { return false; } RedistributionPolicy that = (RedistributionPolicy) o; return Objects.equals(_instance, that._instance) && _routeMap.equals(that._routeMap); }
RedistributionPolicy implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RedistributionPolicy)) { return false; } RedistributionPolicy that = (RedistributionPolicy) o; return Objects.equals(_instance, that._instance) && _routeMap.equals(that._routeMap); } }
RedistributionPolicy implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RedistributionPolicy)) { return false; } RedistributionPolicy that = (RedistributionPolicy) o; return Objects.equals(_instance, that._instance) && _routeMap.equals(that._routeMap); } RedistributionPolicy(RoutingProtocolInstance instance, String routeMap); }
RedistributionPolicy implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RedistributionPolicy)) { return false; } RedistributionPolicy that = (RedistributionPolicy) o; return Objects.equals(_instance, that._instance) && _routeMap.equals(that._routeMap); } RedistributionPolicy(RoutingProtocolInstance instance, String routeMap); @Nonnull RoutingProtocolInstance getInstance(); @Nonnull String getRouteMap(); @Override boolean equals(Object o); @Override int hashCode(); }
RedistributionPolicy implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RedistributionPolicy)) { return false; } RedistributionPolicy that = (RedistributionPolicy) o; return Objects.equals(_instance, that._instance) && _routeMap.equals(that._routeMap); } RedistributionPolicy(RoutingProtocolInstance instance, String routeMap); @Nonnull RoutingProtocolInstance getInstance(); @Nonnull String getRouteMap(); @Override boolean equals(Object o); @Override int hashCode();  }