Ejemplo n.º 1
0
 @Override
 public int compareTo(PersonNetwork member) {
   int ret = -1 * isHomeNetwork().compareTo(member.isHomeNetwork());
   if (ret == 0) {
     ret = getId().compareTo(member.getId());
   }
   return ret;
 }
Ejemplo n.º 2
0
  @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());
    }
  }