protected Set < PermissionType > getPermissionInstances ( Collection < ModelType > models ) { // Create new collection of permissions by manually converting each model Set < PermissionType > permissions = new HashSet < PermissionType > ( models . size ( ) ) ; for ( ModelType model : models ) permissions . ( getPermissionInstance ( model ) ) ; return permissions ; }
Returns a collection of permissions which are based on the models in the given collection .