class 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);

}