@Test public void testEquals() { HaGroup obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setActiveBonus(null).build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setPools(ImmutableMap.of()).build()) .addEqualityGroup(_builder.setTrunks(ImmutableMap.of()).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroup)) { return false; } HaGroup rhs = (HaGroup) obj; return Objects.equals(_activeBonus, rhs._activeBonus) && _name.equals(rhs._name) && _pools.equals(rhs._pools) && _trunks.equals(rhs._trunks); }
HaGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroup)) { return false; } HaGroup rhs = (HaGroup) obj; return Objects.equals(_activeBonus, rhs._activeBonus) && _name.equals(rhs._name) && _pools.equals(rhs._pools) && _trunks.equals(rhs._trunks); } }
HaGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroup)) { return false; } HaGroup rhs = (HaGroup) obj; return Objects.equals(_activeBonus, rhs._activeBonus) && _name.equals(rhs._name) && _pools.equals(rhs._pools) && _trunks.equals(rhs._trunks); } private  HaGroup(
      @Nullable Integer activeBonus,
      String name,
      Map<String, HaGroupPool> pools,
      Map<String, HaGroupTrunk> trunks); }
HaGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroup)) { return false; } HaGroup rhs = (HaGroup) obj; return Objects.equals(_activeBonus, rhs._activeBonus) && _name.equals(rhs._name) && _pools.equals(rhs._pools) && _trunks.equals(rhs._trunks); } private  HaGroup(
      @Nullable Integer activeBonus,
      String name,
      Map<String, HaGroupPool> pools,
      Map<String, HaGroupTrunk> trunks); static @Nonnull Builder builder(); @Nullable Integer getActiveBonus(); @Nonnull String getName(); @Nonnull Map<String, HaGroupPool> getPools(); @Nonnull Map<String, HaGroupTrunk> getTrunks(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
HaGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof HaGroup)) { return false; } HaGroup rhs = (HaGroup) obj; return Objects.equals(_activeBonus, rhs._activeBonus) && _name.equals(rhs._name) && _pools.equals(rhs._pools) && _trunks.equals(rhs._trunks); } private  HaGroup(
      @Nullable Integer activeBonus,
      String name,
      Map<String, HaGroupPool> pools,
      Map<String, HaGroupTrunk> trunks); static @Nonnull Builder builder(); @Nullable Integer getActiveBonus(); @Nonnull String getName(); @Nonnull Map<String, HaGroupPool> getPools(); @Nonnull Map<String, HaGroupTrunk> getTrunks(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }