- compareTo()/Comparable<T> was used back in the TDGP times and is no longer needed
- value first, then variable on comparison to avoid accidently assignments
- updated jar(s)
private String userPassword;
/**
- * Constructot with user instance and unencrypted password
+ * Constructor with user instance and unencrypted password
* <p>
- * @param user User instance
+ * @param user User instance
* @param userPassword Unencrypted password
*/
public UserLoginContainer (final User user, final String userPassword) {
@Index (name = "email_change_user", columnList = "email_change_user")
}
)
-public class EmailAddressChange implements ChangeableEmailAddress, Comparable<ChangeableEmailAddress> {
+public class EmailAddressChange implements ChangeableEmailAddress {
/**
* Serial number
this.emailChangeStatus = EmailChangeStatus.NEW;
}
- @Override
- public int compareTo (final ChangeableEmailAddress emailAddress) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public boolean equals (final Object object) {
if (this == object) {
return true;
- } else if (object == null) {
+ } else if (null == object) {
return false;
} else if (this.getClass() != object.getClass()) {
return false;
final ChangeableEmailAddress otherEmail = (ChangeableEmailAddress) object;
- if (!Objects.equals(this.getEmailChangeId(), otherEmail.getEmailChangeId())) {
+ if (!Objects.equals(this.getEmailAddress(), otherEmail.getEmailAddress())) {
return false;
}
@Override
public int hashCode () {
int hash = 5;
- hash = 71 * hash + Objects.hashCode(this.emailChangeId);
- hash = 71 * hash + Objects.hashCode(this.emailChangeUser);
+ hash = 71 * hash + Objects.hashCode(this.getEmailAddress());
+ hash = 71 * hash + Objects.hashCode(this.getEmailChangeUser());
return hash;
}
@NamedQuery (name = "AllMemberPublicUsers", query = "SELECT u FROM users AS u WHERE u.userAccountStatus = :status AND u.userProfileMode IN (:public, :members) ORDER BY u.userId ASC")
}
)
-public class LoginUser implements User, Comparable<User> {
+public class LoginUser implements User {
/**
* Serial number
this.userProfileMode = ProfileMode.INVISIBLE;
}
- @Override
- public int compareTo (final User user) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public void copyAll (final User user) {
// Copy also contact data
@Override
public boolean equals (final Object object) {
- if (object == null) {
+ if (null == object) {
return false;
}
if (this.getClass() != object.getClass()) {
*/
void setUserUpdated (final Calendar userUpdated);
- /**
- * Checks if object is a User instance and whether it matches with this
- * object.
- * <p>
- * @param object Object to be checked
- * <p>
- * @return Whether it matches this object
- */
@Override
boolean equals (final Object object);
- /**
- * Hash code calculation for this object
- * <p>
- * @return Hash code for this object
- */
@Override
int hashCode ();
}