public int compareTo(USMember usMember) { int value = 0; value = getMemberLastName().compareTo(usMember.getMemberLastName()); if (value != 0) { return value; } return 0; }
public boolean equals(Object obj) { if (obj == null) { return false; } USMember usMember = null; try { usMember = (USMember) obj; } catch (ClassCastException cce) { return false; } long pk = usMember.getPrimaryKey(); if (getPrimaryKey() == pk) { return true; } else { return false; } }