public final boolean hasResourcesOfType(final ResourceType resourceType) {
    notNull(resourceType, "ResourceType cannot be null!");
    for (final Resource resource : resources) {
      if (resourceType.equals(resource.getType())) {
        return true;
      }
    }
    return false;
  }
public final boolean hasResourcesOfType(final ResourceType resourceType) {
    notNull(resourceType, "ResourceType cannot be null!");
    for (final Resource resource : resources) {
      if (resourceType.equals(resource.getType())) {
        return true;
      }
    }
    return false;
  }
public final boolean hasResourcesOfType ( final ResourceType resourceType ) { notNull ( resourceType , "ResourceType cannot be null!" ) ; for ( final Resource resource : resources ) { if ( resourceType . equals ( resource . getType ( ) ) ) { return true ; } } return false ; }
Check if the group has at least one resource of some type.

@param resourceType
type of the searched resource.
@return true if at least one resource of some type exists.
Check if the group has at least one resource of some type .