import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.mxchange.jcontacts.model.contact.Contact;
-import org.mxchange.jcontacts.model.contact.Contacts;
import org.mxchange.jcontacts.model.contact.UserContact;
+import org.mxchange.jcontacts.model.utils.ContactUtils;
import org.mxchange.jcoreutils.Comparables;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
// Checkparameter and return 0 if equal
if (null == user) {
// Should not happen
- throw new NullPointerException("user is null"); //NOI18N
- } else if (user.equals(this)) {
+ throw new NullPointerException("Parameter 'user' is null"); //NOI18N
+ } else if (Objects.equals(this, user)) {
// Same object
return 0;
}
// Init comparitors
final int comparitors[] = {
// First contact
- Contacts.compare(this.getUserContact(), user.getUserContact()),
+ ContactUtils.compare(this.getUserContact(), user.getUserContact()),
// ... then user name
this.getUserName().compareTo(user.getUserName())
};