this();
// Are all parameter set?
- if (null == contactFamilyName) {
+ if (null == contactPersonalTitle) {
// Throw NPE
- throw new NullPointerException("contactFamilyName is null"); //NOI18N
- } else if (contactFamilyName.isEmpty()) {
- // Throw IAE
- throw new IllegalArgumentException("contactFamilyName is empty"); //NOI18N
+ throw new NullPointerException("contactPersonalTitle is null"); //NOI18N
} else if (null == contactFirstName) {
// Throw NPE
throw new NullPointerException("contactFirstName is null"); //NOI18N
} else if (contactFirstName.isEmpty()) {
// Throw IAE
throw new IllegalArgumentException("contactFirstName is empty"); //NOI18N
- } else if (null == contactPersonalTitle) {
+ } else if (null == contactFamilyName) {
// Throw NPE
- throw new NullPointerException("contactPersonalTitle is null"); //NOI18N
+ throw new NullPointerException("contactFamilyName is null"); //NOI18N
+ } else if (contactFamilyName.isEmpty()) {
+ // Throw IAE
+ throw new IllegalArgumentException("contactFamilyName is empty"); //NOI18N
}
// Set all
import java.util.List;
/**
- * Gender utils class
+ * Gender utilities class
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
* <p>
* @return Selectable genders (not UNKNOWN)
*/
- public static List<Gender> allGendersAsList () {
+ public static List<Gender> allGenders () {
// Init list
final List<Gender> list = new LinkedList<>();
* Getter for Gender enumeration from given character
* <p>
* @param c Gender character
- <p>
+ * <p>
* @return Gender enumeration
*/
public static Gender fromChar (final char c) {