Example #1
0
 @Override
 public State clone() {
   try {
     super.clone();
   } catch (CloneNotSupportedException e) {
     Log.error(THIS_CLASS, e);
   }
   return new State().set(this);
 }
Example #2
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;
    }
  }