private boolean allListItemsHaveDisplayName ( List < IPersonAttributes > people ) { for ( IPersonAttributes person : people ) { if ( person . getAttributeValue ( "displayName" ) == null ) { return false ; } } return true ; }
Utility class to determine if all items in the list of people have a displayName .