public List<Link> connect(int bandwidth, Switch sw, List<? extends PhysicalElement> pelts) {
        return pelts.stream().map(pe -> connect(bandwidth, sw, pe)).collect(Collectors.toList());
    }
public List < Link > connect ( int bandwidth , Switch sw , List < ? extends PhysicalElement > pelts ) { return pelts . stream ( ) . map ( pe -> connect ( bandwidth , sw , pe ) ) . collect ( Collectors . toList ( ) ) ; }
Create connections between a single switch and multiple physical elements

@param bandwidth the maximal bandwidth for the connection
@param sw        the switch to connect
@param pelts     a list of physical elements to connect
@return a list of links