@Override public int compareTo(PersonNetwork member) { int ret = -1 * isHomeNetwork().compareTo(member.isHomeNetwork()); if (ret == 0) { ret = getId().compareTo(member.getId()); } return ret; }
@Override public void expected(Object o) { assertTrue(o instanceof PersonNetwork); PersonNetwork other = (PersonNetwork) o; AssertUtil.assertEquals("homeNetwork", homeNetwork, other.isHomeNetwork()); if (network != null) { network.expected(other.getNetwork()); } }