class Aggregate extends BfObject {

  @Override
  public boolean equals(@Nullable Object o) {
    if (this == o) {
      return true;
    } else if (!(o instanceof Aggregate)) {
      return false;
    }
    Aggregate a = (Aggregate) o;
    return _type == a._type
        && _name.equals(a._name)
        && _contents.equals(a._contents)
        && Objects.equals(getId(), a.getId());
  }

  public  Aggregate(String name, AggregateType type);

}