public static List < Preserve > newPreserve ( Collection < VM > vms , String r , int q ) { return vms . stream ( ) . map ( v -> new Preserve ( v , r , q ) ) . collect ( Collectors . toList ( ) ) ; }
Make multiple constraints