code: public void renumberUniqueIDs()
     {
        int uid = firstUniqueID();
        for (T entity : this)
        {
           entity.setUniqueID(Integer.valueOf(uid++));
        }
     }
docs: Renumbers all entity unique IDs.