public Properties putProducts ( Product ... products ) { if ( isNullOrEmpty ( products ) ) { throw new IllegalArgumentException ( "products cannot be null or empty." ) ; } List < Product > productList = new ArrayList <> ( products . length ) ; Collections . addAll ( productList , products ) ; return putValue ( PRODUCTS_KEY , Collections . unmodifiableList ( productList ) ) ; }
Set the individual products for an order associated with an event .