class PoolMember implements Serializable {

  @Override
  public boolean equals(@Nullable Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof PoolMember)) {
      return false;
    }
    PoolMember rhs = (PoolMember) obj;
    return Objects.equals(_address, rhs._address)
        && Objects.equals(_address6, rhs._address6)
        && Objects.equals(_description, rhs._description)
        && _name.equals(rhs._name)
        && _node.equals(rhs._node)
        && _port == rhs._port;
  }

  private  PoolMember(
      @Nullable Ip address,
      @Nullable Ip6 address6,
      @Nullable String description,
      String name,
      String node,
      int port);

}