*/
package org.mxchange.addressbook.contact;
+import org.mxchange.addressbook.application.AddressbookApplication;
+
/**
* Gender enum
* @author Roland Haeder
// Debug message
//* NOISY-DEBUG: */ System.out.println("gender=" + gender);
- // Is it "U"?
- if (gender.getDatabaseValue().equals("U")) {
+ // Is it UNKNOWN?
+ if (gender.equals(Gender.UNKNOWN)) {
// Skip this
continue;
}
protected String getMessageKey () {
return this.messageKey;
}
+
+ /**
+ * Overwritten to return human-readable strings
+ *
+ * @return Human-readable strings
+ */
+ @Override
+ public String toString () {
+ // Get key from bundle and return it
+ return AddressbookApplication.getInstance().getMessageStringFromKey(this.getMessageKey());
+ }
}