@Test public void testEquals() { HaGroupPool obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setWeight(null).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroupPool)) { return false; } HaGroupPool rhs = (HaGroupPool) obj; return _name.equals(rhs._name) && Objects.equals(_weight, rhs._weight); }
HaGroupPool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroupPool)) { return false; } HaGroupPool rhs = (HaGroupPool) obj; return _name.equals(rhs._name) && Objects.equals(_weight, rhs._weight); } }
HaGroupPool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroupPool)) { return false; } HaGroupPool rhs = (HaGroupPool) obj; return _name.equals(rhs._name) && Objects.equals(_weight, rhs._weight); } private  HaGroupPool(String name, @Nullable Integer weight); }
HaGroupPool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroupPool)) { return false; } HaGroupPool rhs = (HaGroupPool) obj; return _name.equals(rhs._name) && Objects.equals(_weight, rhs._weight); } private  HaGroupPool(String name, @Nullable Integer weight); static @Nonnull Builder builder(); @Nonnull String getName(); @Nullable Integer getWeight(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
HaGroupPool implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroupPool)) { return false; } HaGroupPool rhs = (HaGroupPool) obj; return _name.equals(rhs._name) && Objects.equals(_weight, rhs._weight); } private  HaGroupPool(String name, @Nullable Integer weight); static @Nonnull Builder builder(); @Nonnull String getName(); @Nullable Integer getWeight(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }