if (!Objects.equals(this.getUserName(), user.getUserName())) {
return false;
+ } else if (!Objects.equals(this.getUserAccountStatus(), user.getUserAccountStatus())) {
+ return false;
} else if (!Objects.equals(this.getUserConfirmKey(), user.getUserConfirmKey())) {
return false;
- } else if (!Objects.equals(this.getUserAccountStatus(), user.getUserAccountStatus())) {
+ } else if (!Objects.equals(this.getUserId(), user.getUserId())) {
return false;
- } else if (!Objects.equals(this.getUserContact(), user.getUserContact())) {
+ } else if (!Objects.equals(this.getUserMustChangePassword(), user.getUserMustChangePassword())) {
+ return false;
+ } else if (!Objects.equals(this.getUserName(), user.getUserName())) {
return false;
} else if (!Objects.equals(this.getUserProfileMode(), user.getUserProfileMode())) {
return false;
- } else if (!Objects.equals(this.getUserId(), user.getUserId())) {
+ } else if (!Objects.equals(this.getUserContact(), user.getUserContact())) {
return false;
}
int hash = 5;
hash = 83 * hash + Objects.hashCode(this.getUserName());
- hash = 83 * hash + Objects.hashCode(this.getUserConfirmKey());
hash = 83 * hash + Objects.hashCode(this.getUserAccountStatus());
- hash = 83 * hash + Objects.hashCode(this.getUserContact());
+ hash = 83 * hash + Objects.hashCode(this.getUserConfirmKey());
+ hash = 83 * hash + Objects.hashCode(this.getUserId());
+ hash = 83 * hash + Objects.hashCode(this.getUserMustChangePassword());
hash = 83 * hash + Objects.hashCode(this.getUserProfileMode());
+ hash = 83 * hash + Objects.hashCode(this.getUserContact());
return hash;
}
* @return A formatted string from Date instance
*/
public static String getFormattedTimestampFromUser (final User user, final Date date) {
+ // Validate parameter
+ if (null == user) {
+ // Throw NPE
+ throw new NullPointerException("Parameter 'user' is null"); //NOI18N
+ } else if (null == date) {
+ // Throw NPE
+ throw new NullPointerException("Parameter 'date' is null"); //NOI18N
+ }
+
// Get formatter
final DateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, user.getUserLocale());