code: public void setElements(
                      final Collection<? extends T> elements
                      )
      {
          clear();
          if (elements == null  ||  elements.size() == 0) {
              return;
          }
  
          for (T  obj : elements) {
              addElement( obj );
          }
      }
docs: Sets the result objects.
  The objects are appended in the order that they are returned
  by the collection's iterator.
  
  @param   elements
  the result objects.