@Test public void testEquals() { Builder builder = ConnectedRouteMetadata.builder().setTag(1); ConnectedRouteMetadata crm = builder.build(); new EqualsTester() .addEqualityGroup(crm, crm, builder.build()) .addEqualityGroup(builder.setTag(2).build()) .addEqualityGroup(builder.setTag(3).build()) .addEqualityGroup(builder.setAdmin(3).build()) .addEqualityGroup(builder.setTag(1).build()) .addEqualityGroup(builder.setGenerateLocalRoutes(true).build()) .addEqualityGroup(builder.setAdmin(1).setGenerateLocalRoutes(true)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ConnectedRouteMetadata)) { return false; } ConnectedRouteMetadata that = (ConnectedRouteMetadata) o; return Objects.equals(_admin, that._admin) && Objects.equals(_generateLocalRoutes, that._generateLocalRoutes) && Objects.equals(_tag, that._tag); }
ConnectedRouteMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ConnectedRouteMetadata)) { return false; } ConnectedRouteMetadata that = (ConnectedRouteMetadata) o; return Objects.equals(_admin, that._admin) && Objects.equals(_generateLocalRoutes, that._generateLocalRoutes) && Objects.equals(_tag, that._tag); } }
ConnectedRouteMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ConnectedRouteMetadata)) { return false; } ConnectedRouteMetadata that = (ConnectedRouteMetadata) o; return Objects.equals(_admin, that._admin) && Objects.equals(_generateLocalRoutes, that._generateLocalRoutes) && Objects.equals(_tag, that._tag); } private  ConnectedRouteMetadata(
      @Nullable Integer admin, @Nullable Boolean generateLocalRoutes, @Nullable Long tag); }
ConnectedRouteMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ConnectedRouteMetadata)) { return false; } ConnectedRouteMetadata that = (ConnectedRouteMetadata) o; return Objects.equals(_admin, that._admin) && Objects.equals(_generateLocalRoutes, that._generateLocalRoutes) && Objects.equals(_tag, that._tag); } private  ConnectedRouteMetadata(
      @Nullable Integer admin, @Nullable Boolean generateLocalRoutes, @Nullable Long tag); @Nullable @JsonProperty(PROP_ADMIN) Integer getAdmin(); @Nullable Boolean getGenerateLocalRoutes(); @Nullable @JsonProperty(PROP_TAG) Long getTag(); @Override boolean equals(@Nullable Object o); @Override String toString(); @Override int hashCode(); static Builder builder(); }
ConnectedRouteMetadata implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ConnectedRouteMetadata)) { return false; } ConnectedRouteMetadata that = (ConnectedRouteMetadata) o; return Objects.equals(_admin, that._admin) && Objects.equals(_generateLocalRoutes, that._generateLocalRoutes) && Objects.equals(_tag, that._tag); } private  ConnectedRouteMetadata(
      @Nullable Integer admin, @Nullable Boolean generateLocalRoutes, @Nullable Long tag); @Nullable @JsonProperty(PROP_ADMIN) Integer getAdmin(); @Nullable Boolean getGenerateLocalRoutes(); @Nullable @JsonProperty(PROP_TAG) Long getTag(); @Override boolean equals(@Nullable Object o); @Override String toString(); @Override int hashCode(); static Builder builder();  }