public boolean equals(Community community) { if (id == community.getId()) { return true; } return false; }