@Test public void testEquals() { Pool obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setDescription(null).build()) .addEqualityGroup(_builder.setMembers(ImmutableMap.of()).build()) .addEqualityGroup(_builder.setMonitors(ImmutableList.of()).build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Pool)) { return false; } Pool rhs = (Pool) obj; return Objects.equals(_description, rhs._description) && _members.equals(rhs._members) && _monitors.equals(rhs._monitors) && _name.equals(rhs._name); }
Pool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Pool)) { return false; } Pool rhs = (Pool) obj; return Objects.equals(_description, rhs._description) && _members.equals(rhs._members) && _monitors.equals(rhs._monitors) && _name.equals(rhs._name); } }
Pool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Pool)) { return false; } Pool rhs = (Pool) obj; return Objects.equals(_description, rhs._description) && _members.equals(rhs._members) && _monitors.equals(rhs._monitors) && _name.equals(rhs._name); } private  Pool(
      @Nullable String description,
      Map<String, PoolMember> members,
      List<String> monitors,
      String name); }
Pool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Pool)) { return false; } Pool rhs = (Pool) obj; return Objects.equals(_description, rhs._description) && _members.equals(rhs._members) && _monitors.equals(rhs._monitors) && _name.equals(rhs._name); } private  Pool(
      @Nullable String description,
      Map<String, PoolMember> members,
      List<String> monitors,
      String name); static @Nonnull Builder builder(); @Nullable String getDescription(); @Nonnull Map<String, PoolMember> getMembers(); @Nonnull List<String> getMonitors(); @Nonnull String getName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
Pool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Pool)) { return false; } Pool rhs = (Pool) obj; return Objects.equals(_description, rhs._description) && _members.equals(rhs._members) && _monitors.equals(rhs._monitors) && _name.equals(rhs._name); } private  Pool(
      @Nullable String description,
      Map<String, PoolMember> members,
      List<String> monitors,
      String name); static @Nonnull Builder builder(); @Nullable String getDescription(); @Nonnull Map<String, PoolMember> getMembers(); @Nonnull List<String> getMonitors(); @Nonnull String getName(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }