private boolean isAllPortsLooped(List<URI> orderedNetworks,Map<URI,List<StoragePort>> allocatablePorts,Set<String> usedPorts){
  for (  URI networkURI : orderedNetworks) {
    for (    StoragePort port : allocatablePorts.get(networkURI)) {
      if (!usedPorts.contains(port.getPortName())) {
        return false;
      }
    }
  }
  return true;
}

private boolean isAllPortsLooped ( List < URI > orderedNetworks , Map < URI , List < StoragePort > > allocatablePorts , Set < String > usedPorts ) { for ( URI networkURI : orderedNetworks ) { for ( StoragePort port : allocatablePorts . get ( networkURI ) ) { if ( ! usedPorts . contains ( port . getPortName ( ) ) ) { return false ; } } } return true ; }
checks if is all given ports have been processed or selected .
