GroupUrlTitleInfoItemIdentifier extends BaseInfoItemIdentifier { @Override public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof GroupUrlTitleInfoItemIdentifier)) { return false; } GroupUrlTitleInfoItemIdentifier groupUrlTitleInfoItemIdentifier = (GroupUrlTitleInfoItemIdentifier)object; if (Objects.equals( _groupId, groupUrlTitleInfoItemIdentifier._groupId) && Objects.equals( _urlTitle, groupUrlTitleInfoItemIdentifier._urlTitle)) { return true; } return false; } GroupUrlTitleInfoItemIdentifier(long groupId, String urlTitle); @Override boolean equals(Object object); long getGroupId(); String getUrlTitle(); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { GroupUrlTitleInfoItemIdentifier groupUrlTitleInfoItemIdentifier1 = new GroupUrlTitleInfoItemIdentifier(12345L, "urlTitle"); GroupUrlTitleInfoItemIdentifier groupUrlTitleInfoItemIdentifier2 = new GroupUrlTitleInfoItemIdentifier(12345L, "urlTitle"); Assert.assertEquals( groupUrlTitleInfoItemIdentifier1, groupUrlTitleInfoItemIdentifier2); }