test_class.file: ml/streaminer/src/test/java/org/streaminer/util/TestDoublyLinkedList.java
test_class.identifier: TestDoublyLinkedList
test_case.body: @Test(expected = ConcurrentModificationException.class)
      public void testConcurrentModification()
      {
          DoublyLinkedList<Integer> list = new DoublyLinkedList<Integer>();
          list.add(1);
          list.add(2);
          list.add(3);
  
          for (int i : list)
          {
              if (i == 2)
              {
                  list.add(4);
              }
          }
      }
test_case.class_method_signature: TestDoublyLinkedList.testConcurrentModification()
test_case.full_signature: @Test(expected = ConcurrentModificationException.class) public void testConcurrentModification()
test_case.identifier: testConcurrentModification
test_case.invocations: add add add add
test_case.modifiers: @Test(expected = ConcurrentModificationException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConcurrentModification()
focal_class.declarator: size
focal_class.modifier: protected
focal_class.original_string: protected int size;
focal_class.type: int
focal_class.var_name: size
focal_class.declarator: tail
focal_class.modifier: protected
focal_class.original_string: protected ListNode2<T> tail;
focal_class.type: ListNode2<T>
focal_class.var_name: tail
focal_class.declarator: head
focal_class.modifier: protected
focal_class.original_string: protected ListNode2<T> head;
focal_class.type: ListNode2<T>
focal_class.var_name: head
focal_class.file: ml/streaminer/src/main/java/org/streaminer/util/DoublyLinkedList.java
focal_class.identifier: DoublyLinkedList
focal_class.interfaces: implements Iterable<T>
focal_class.class_method_signature: DoublyLinkedList.add(T value)
focal_class.full_signature: public ListNode2<T> add(T value)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (T value)
focal_class.return: ListNode2<T>
focal_class.signature: ListNode2<T> add(T value)
focal_class.class_method_signature: DoublyLinkedList.enqueue(T value)
focal_class.full_signature: public ListNode2<T> enqueue(T value)
focal_class.identifier: enqueue
focal_class.modifiers: public
focal_class.parameters: (T value)
focal_class.return: ListNode2<T>
focal_class.signature: ListNode2<T> enqueue(T value)
focal_class.class_method_signature: DoublyLinkedList.add(ListNode2<T> node)
focal_class.full_signature: public void add(ListNode2<T> node)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (ListNode2<T> node)
focal_class.return: void
focal_class.signature: void add(ListNode2<T> node)
focal_class.class_method_signature: DoublyLinkedList.addAfter(ListNode2<T> node, T value)
focal_class.full_signature: public ListNode2<T> addAfter(ListNode2<T> node, T value)
focal_class.identifier: addAfter
focal_class.modifiers: public
focal_class.parameters: (ListNode2<T> node, T value)
focal_class.return: ListNode2<T>
focal_class.signature: ListNode2<T> addAfter(ListNode2<T> node, T value)
focal_class.class_method_signature: DoublyLinkedList.addAfter(ListNode2<T> node, ListNode2<T> newNode)
focal_class.full_signature: public void addAfter(ListNode2<T> node, ListNode2<T> newNode)
focal_class.identifier: addAfter
focal_class.modifiers: public
focal_class.parameters: (ListNode2<T> node, ListNode2<T> newNode)
focal_class.return: void
focal_class.signature: void addAfter(ListNode2<T> node, ListNode2<T> newNode)
focal_class.class_method_signature: DoublyLinkedList.remove(ListNode2<T> node)
focal_class.full_signature: public void remove(ListNode2<T> node)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (ListNode2<T> node)
focal_class.return: void
focal_class.signature: void remove(ListNode2<T> node)
focal_class.class_method_signature: DoublyLinkedList.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: DoublyLinkedList.iterator()
focal_class.full_signature: @Override public Iterator<T> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<T>
focal_class.signature: Iterator<T> iterator()
focal_class.class_method_signature: DoublyLinkedList.first()
focal_class.full_signature: public T first()
focal_class.identifier: first
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T first()
focal_class.class_method_signature: DoublyLinkedList.last()
focal_class.full_signature: public T last()
focal_class.identifier: last
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T last()
focal_class.class_method_signature: DoublyLinkedList.head()
focal_class.full_signature: public ListNode2<T> head()
focal_class.identifier: head
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ListNode2<T>
focal_class.signature: ListNode2<T> head()
focal_class.class_method_signature: DoublyLinkedList.tail()
focal_class.full_signature: public ListNode2<T> tail()
focal_class.identifier: tail
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ListNode2<T>
focal_class.signature: ListNode2<T> tail()
focal_class.class_method_signature: DoublyLinkedList.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: DoublyLinkedList.toArray()
focal_class.full_signature: @SuppressWarnings("unchecked") public T[] toArray()
focal_class.identifier: toArray
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: T[]
focal_class.signature: T[] toArray()
focal_method.body: public ListNode2<T> add(T value)
      {
          ListNode2<T> node = new ListNode2<T>(value);
          if (size++ == 0)
          {
              tail = node;
          }
          else
          {
              node.prev = head;
              head.next = node;
          }
  
          head = node;
  
          return node;
      }
focal_method.class_method_signature: DoublyLinkedList.add(T value)
focal_method.full_signature: public ListNode2<T> add(T value)
focal_method.identifier: add
focal_method.modifiers: public
focal_method.parameters: (T value)
focal_method.return: ListNode2<T>
focal_method.signature: ListNode2<T> add(T value)