public void setUsers ( List < User > users ) { users . forEach ( u -> validateNonNull ( u ) ) ; this . users = new ArrayList <> ( users ) ; }
Sets a new list of users for this context . An internal copy of the provided list is stored .