Ejemplo n.º 1
0
  /*!*/
  public void end() {

    synchronized (m_synchronizer) {
      checkNull(m_template);

      Datatype tmpl = m_template.clone();
      checkNull(tmpl);

      m_size++;
      m_template.setPrevious(tmpl);

      if (m_previous == null) {
        m_current = tmpl;
        m_currentIndex = 0;
      } else {
        m_previous.setNext(tmpl);
      }

      m_previous = tmpl;
    }
  }