@Override public boolean equals(Object other) { if (other instanceof Activity) { Activity a = (Activity) other; return activityId.equals(a.activityId) && application.equals(a.application) && content.equals(a.content) && icon.equals(a.icon) && id.equals(a.id) && object.equals(a.object) && postedDate.equals(a.postedDate) && poster.equals(a.poster) && registeredUser == a.registeredUser && target.equals(a.target) && title.equals(a.title) && url.equals(a.url) && user.equals(a.user) && verb.equals(a.verb); } return false; }
private Function<ActivityObject, Option<Html>> spaceObjectRenderer() { return o -> some(new Html(Renderers.render(templateRenderer, "activity-object-link-space.vm", ImmutableMap.of( "activityObject", o, "isPersonalSpace", o.getActivityObjectType().equals(some(personalSpace())) )))); } }