public static GenderEnumeration findByValue ( final String value ) { if ( value == null ) { return null ; } final String gender = value . toUpperCase ( ) ; if ( gender . charAt ( 0 ) == ' ' ) { return GenderEnumeration . MALE ; } else if ( gender . charAt ( 0 ) == ' ' ) { return GenderEnumeration . FEMALE ; } else { return null ; } }
Returns the proper instance based on the string value