protected boolean checkResourceRequestType ( List < ResourceRequest > requestList ) { for ( ResourceRequest req : requestList ) { if ( ! legalTypeSet . contains ( req . type ) ) { return false ; } } return true ; }
Check all the resource requests and ensure that they are legal .