private boolean usedAllRule17Directors(Set<String> allocatedDirectors,PortAllocationContext context){
  Set<String> rule17Directors=getRule17Directors(context);
  for (  String director : allocatedDirectors) {
    rule17Directors.remove(director);
  }
  return rule17Directors.isEmpty();
}

private boolean usedAllRule17Directors ( Set < String > allocatedDirectors , PortAllocationContext context ) { Set < String > rule17Directors = getRule17Directors ( context ) ; for ( String director : allocatedDirectors ) { rule17Directors . remove ( director ) ; } return rule17Directors . isEmpty ( ) ; }
returns true if already used all the rule17 directors .
