public static List<Overbook> newOverbooks(Collection<Node> nodes, String rc, double r) {
        return nodes.stream().map(n -> new Overbook(n, rc, r)).collect(Collectors.toList());
    }
public static List < Overbook > newOverbooks ( Collection < Node > nodes , String rc , double r ) { return nodes . stream ( ) . map ( n -> new Overbook ( n , rc , r ) ) . collect ( Collectors . toList ( ) ) ; }
Instantiate constraints for a collection of nodes.

@param nodes the nodes to integrate
@param rc    the resource identifier
@param r     the overbooking ratio, &gt;= 1
@return the associated list of continuous constraints