@Test public void testEquals() { RibId rib1 = new RibId("hostname", "vrfname", "ribname"); RibId rib2 = new RibId("hostname", "vrfname", "secondaryRib"); RibId exportRib = new RibId("hostname", "vrfname", "exportRib"); new EqualsTester() .addEqualityGroup( new RibGroup("name", ImmutableList.of(rib1), "policy1", exportRib), new RibGroup("name", ImmutableList.of(rib1), "policy1", exportRib)) .addEqualityGroup( new RibGroup("differentName", ImmutableList.of(rib1), "policy1", exportRib)) .addEqualityGroup(new RibGroup("name", ImmutableList.of(rib2), "policy2", exportRib)) .addEqualityGroup(new RibGroup("name", ImmutableList.of(rib2), "policy1", rib1)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibGroup)) { return false; } RibGroup ribGroup = (RibGroup) o; return Objects.equals(_name, ribGroup._name) && Objects.equals(_exportRib, ribGroup._exportRib) && Objects.equals(_importPolicy, ribGroup._importPolicy) && Objects.equals(_importRibs, ribGroup._importRibs); }
RibGroup implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibGroup)) { return false; } RibGroup ribGroup = (RibGroup) o; return Objects.equals(_name, ribGroup._name) && Objects.equals(_exportRib, ribGroup._exportRib) && Objects.equals(_importPolicy, ribGroup._importPolicy) && Objects.equals(_importRibs, ribGroup._importRibs); } }
RibGroup implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibGroup)) { return false; } RibGroup ribGroup = (RibGroup) o; return Objects.equals(_name, ribGroup._name) && Objects.equals(_exportRib, ribGroup._exportRib) && Objects.equals(_importPolicy, ribGroup._importPolicy) && Objects.equals(_importRibs, ribGroup._importRibs); } RibGroup(
      String name, List<RibId> importRibs, String importPolicy, @Nullable RibId exportRib); }
RibGroup implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibGroup)) { return false; } RibGroup ribGroup = (RibGroup) o; return Objects.equals(_name, ribGroup._name) && Objects.equals(_exportRib, ribGroup._exportRib) && Objects.equals(_importPolicy, ribGroup._importPolicy) && Objects.equals(_importRibs, ribGroup._importRibs); } RibGroup(
      String name, List<RibId> importRibs, String importPolicy, @Nullable RibId exportRib); @Nonnull @JsonProperty(PROP_NAME) String getName(); @Nullable @JsonProperty(PROP_EXPORT_RIB) RibId getExportRib(); @Nonnull @JsonProperty(PROP_IMPORT_POLICY) String getImportPolicy(); @Nonnull @JsonProperty(PROP_RIB_IDS) List<RibId> getImportRibs(); @Override boolean equals(Object o); @Override int hashCode(); }
RibGroup implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibGroup)) { return false; } RibGroup ribGroup = (RibGroup) o; return Objects.equals(_name, ribGroup._name) && Objects.equals(_exportRib, ribGroup._exportRib) && Objects.equals(_importPolicy, ribGroup._importPolicy) && Objects.equals(_importRibs, ribGroup._importRibs); } RibGroup(
      String name, List<RibId> importRibs, String importPolicy, @Nullable RibId exportRib); @Nonnull @JsonProperty(PROP_NAME) String getName(); @Nullable @JsonProperty(PROP_EXPORT_RIB) RibId getExportRib(); @Nonnull @JsonProperty(PROP_IMPORT_POLICY) String getImportPolicy(); @Nonnull @JsonProperty(PROP_RIB_IDS) List<RibId> getImportRibs(); @Override boolean equals(Object o); @Override int hashCode();  }