public boolean contains(Friend friend) {
		for (final Friend f : getFriends()) {
			if (StringUtils.parseName(f.getUserId()).equals(
					StringUtils.parseName(friend.getUserId()))) {
				return true;
			}
		}
		return false;
	}
public boolean contains ( Friend friend ) { for ( final Friend f : getFriends ( ) ) { if ( StringUtils . parseName ( f . getUserId ( ) ) . equals ( StringUtils . parseName ( friend . getUserId ( ) ) ) ) { return true ; } } return false ; }
Checks if a given Friend is part of this group.

@param friend
The friend
@return True if this group contains the friend, false otherwise.