]> git.mxchange.org Git - addressbook-swing.git/blobdiff - Addressbook/src/org/mxchange/addressbook/contact/Gender.java
Added a lot trace messages + sanity checks for null references and such things
[addressbook-swing.git] / Addressbook / src / org / mxchange / addressbook / contact / Gender.java
index 6bd68df38d9ea1a745564c176dee70d483ddd945..cdfab047a3dfb96a10e12cdc51856e1c55364439 100644 (file)
@@ -20,24 +20,23 @@ import org.mxchange.addressbook.application.AddressbookApplication;
 
 /**
  * Gender enum
+ *
  * @author Roland Haeder
  */
 public enum Gender {
+
        /**
         * Unknown enum
         */
        UNKNOWN("U", "BaseContact.gender.unknown.text"),
-
        /**
         * Male enum
         */
        MALE("M", "BaseContact.gender.male.text"),
-
        /**
         * Female enum
         */
        FEMALE("F", "BaseContact.gender.female.text"),
-
        /**
         * Company enum
         */
@@ -84,7 +83,7 @@ public enum Gender {
 
        /**
         * Valid chars
-        * 
+        *
         * @return Valid chars
         */
        public static char[] validChars () {
@@ -105,7 +104,6 @@ public enum Gender {
 
                        // Debug message
                        //* NOISY-DEBUG: */ System.out.println("gender=" + gender);
-
                        // Is it UNKNOWN?
                        if (gender.equals(Gender.UNKNOWN)) {
                                // Skip this
@@ -114,7 +112,6 @@ public enum Gender {
 
                        // Debug message
                        //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("gender={0} - adding at pos {1} ...", gender, i));
-
                        // Get database value as this is also the access
                        valid[i] = gender.getDatabaseValue().charAt(0);
 
@@ -141,7 +138,7 @@ public enum Gender {
 
        /**
         * Constructor
-        * 
+        *
         * @param databaseValue Value being stored in database
         * @param messageKey Message key for resource file
         */
@@ -153,7 +150,7 @@ public enum Gender {
 
        /**
         * Database value
-        * 
+        *
         * @return the databaseValue
         */
        protected String getDatabaseValue () {
@@ -162,7 +159,7 @@ public enum Gender {
 
        /**
         * Output value (for messages)
-        * 
+        *
         * @return the messageKey
         */
        protected String getMessageKey () {
@@ -171,7 +168,7 @@ public enum Gender {
 
        /**
         * Overwritten to return human-readable strings
-        * 
+        *
         * @return Human-readable strings
         */
        @Override