protected String getCognizantFederalAgency ( RolodexContract rolodex ) { StringBuilder agency = new StringBuilder ( ) ; if ( rolodex . getOrganization ( ) != null ) { agency . append ( rolodex . getOrganization ( ) ) ; } agency . append ( COMMA_SEPERATOR ) ; if ( rolodex . getFirstName ( ) != null ) { agency . append ( rolodex . getFirstName ( ) ) ; } agency . append ( EMPTY_STRING ) ; if ( rolodex . getLastName ( ) != null ) { agency . append ( rolodex . getLastName ( ) ) ; } agency . append ( EMPTY_STRING ) ; if ( rolodex . getPhoneNumber ( ) != null ) { agency . append ( rolodex . getPhoneNumber ( ) ) ; } return agency . toString ( ) ; }
This method is used to get rolodex Organization FirstName LastName and PhoneNumber as a single string