test_class.file: ujmp-core/src/test/java/org/ujmp/core/collections/TestRingBufferList.java
test_class.identifier: TestRingBufferList
test_case.body: @Test
  	public void testAdd() {
  		RingBufferList<Integer> rl = new RingBufferList<Integer>(4);
  
  		assertEquals(0, rl.size());
  
  		rl.add(0);
  		assertEquals(1, rl.size());
  		assertEquals(0, (int) rl.get(0));
  
  		rl.add(1);
  		assertEquals(2, rl.size());
  		assertEquals(1, (int) rl.get(1));
  
  		rl.add(2);
  		assertEquals(3, rl.size());
  		assertEquals(2, (int) rl.get(2));
  
  		rl.set(1, 5);
  		assertEquals(3, rl.size());
  		assertEquals(5, (int) rl.get(1));
  
  		rl.add(3);
  		assertEquals(4, rl.size());
  		assertEquals(3, (int) rl.get(3));
  
  		rl.add(4);
  		assertEquals(4, rl.size());
  		assertEquals(4, (int) rl.get(3));
  
  		rl.add(5);
  		assertEquals(4, rl.size());
  		assertEquals(5, (int) rl.get(3));
  	}
test_case.class_method_signature: TestRingBufferList.testAdd()
test_case.full_signature: @Test public void testAdd()
test_case.identifier: testAdd
test_case.invocations: assertEquals size add assertEquals size assertEquals get add assertEquals size assertEquals get add assertEquals size assertEquals get set assertEquals size assertEquals get add assertEquals size assertEquals get add assertEquals size assertEquals get add assertEquals size assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAdd()
focal_class.declarator: serialVersionUID = 7887830184838493458L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 7887830184838493458L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: start = -1
focal_class.modifier: private
focal_class.original_string: private int start = -1;
focal_class.type: int
focal_class.var_name: start
focal_class.declarator: end = -1
focal_class.modifier: private
focal_class.original_string: private int end = -1;
focal_class.type: int
focal_class.var_name: end
focal_class.declarator: values[]
focal_class.modifier: private
focal_class.original_string: private Object values[];
focal_class.type: Object
focal_class.var_name: values
focal_class.file: ujmp-core/src/main/java/org/ujmp/core/collections/RingBufferList.java
focal_class.identifier: RingBufferList
focal_class.interfaces: implements List<A>, Serializable
focal_class.class_method_signature: RingBufferList.RingBufferList()
focal_class.full_signature: public  RingBufferList()
focal_class.identifier: RingBufferList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RingBufferList()
focal_class.class_method_signature: RingBufferList.RingBufferList(int maximumSize)
focal_class.full_signature: public  RingBufferList(int maximumSize)
focal_class.identifier: RingBufferList
focal_class.modifiers: public
focal_class.parameters: (int maximumSize)
focal_class.signature:  RingBufferList(int maximumSize)
focal_class.class_method_signature: RingBufferList.maxSize()
focal_class.full_signature: public int maxSize()
focal_class.identifier: maxSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int maxSize()
focal_class.class_method_signature: RingBufferList.add(A a)
focal_class.full_signature: public boolean add(A a)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (A a)
focal_class.return: boolean
focal_class.signature: boolean add(A a)
focal_class.class_method_signature: RingBufferList.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: RingBufferList.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: RingBufferList.addFirst(A a)
focal_class.full_signature: public void addFirst(A a)
focal_class.identifier: addFirst
focal_class.modifiers: public
focal_class.parameters: (A a)
focal_class.return: void
focal_class.signature: void addFirst(A a)
focal_class.class_method_signature: RingBufferList.get(int index)
focal_class.full_signature: @SuppressWarnings("unchecked") public A get(int index)
focal_class.identifier: get
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (int index)
focal_class.return: A
focal_class.signature: A get(int index)
focal_class.class_method_signature: RingBufferList.set(int index, A a)
focal_class.full_signature: @SuppressWarnings("unchecked") public A set(int index, A a)
focal_class.identifier: set
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (int index, A a)
focal_class.return: A
focal_class.signature: A set(int index, A a)
focal_class.class_method_signature: RingBufferList.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: RingBufferList.add(int index, A element)
focal_class.full_signature: public void add(int index, A element)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (int index, A element)
focal_class.return: void
focal_class.signature: void add(int index, A element)
focal_class.class_method_signature: RingBufferList.addAll(Collection<? extends A> c)
focal_class.full_signature: public boolean addAll(Collection<? extends A> c)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (Collection<? extends A> c)
focal_class.return: boolean
focal_class.signature: boolean addAll(Collection<? extends A> c)
focal_class.class_method_signature: RingBufferList.addAll(int index, Collection<? extends A> c)
focal_class.full_signature: public boolean addAll(int index, Collection<? extends A> c)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (int index, Collection<? extends A> c)
focal_class.return: boolean
focal_class.signature: boolean addAll(int index, Collection<? extends A> c)
focal_class.class_method_signature: RingBufferList.contains(Object o)
focal_class.full_signature: public boolean contains(Object o)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean contains(Object o)
focal_class.class_method_signature: RingBufferList.containsAll(Collection<?> c)
focal_class.full_signature: public boolean containsAll(Collection<?> c)
focal_class.identifier: containsAll
focal_class.modifiers: public
focal_class.parameters: (Collection<?> c)
focal_class.return: boolean
focal_class.signature: boolean containsAll(Collection<?> c)
focal_class.class_method_signature: RingBufferList.indexOf(Object o)
focal_class.full_signature: public int indexOf(Object o)
focal_class.identifier: indexOf
focal_class.modifiers: public
focal_class.parameters: (Object o)
focal_class.return: int
focal_class.signature: int indexOf(Object o)
focal_class.class_method_signature: RingBufferList.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: RingBufferList.iterator()
focal_class.full_signature: public Iterator<A> iterator()
focal_class.identifier: iterator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterator<A>
focal_class.signature: Iterator<A> iterator()
focal_class.class_method_signature: RingBufferList.lastIndexOf(Object o)
focal_class.full_signature: public int lastIndexOf(Object o)
focal_class.identifier: lastIndexOf
focal_class.modifiers: public
focal_class.parameters: (Object o)
focal_class.return: int
focal_class.signature: int lastIndexOf(Object o)
focal_class.class_method_signature: RingBufferList.listIterator()
focal_class.full_signature: public ListIterator<A> listIterator()
focal_class.identifier: listIterator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ListIterator<A>
focal_class.signature: ListIterator<A> listIterator()
focal_class.class_method_signature: RingBufferList.listIterator(int index)
focal_class.full_signature: public ListIterator<A> listIterator(int index)
focal_class.identifier: listIterator
focal_class.modifiers: public
focal_class.parameters: (int index)
focal_class.return: ListIterator<A>
focal_class.signature: ListIterator<A> listIterator(int index)
focal_class.class_method_signature: RingBufferList.remove(Object o)
focal_class.full_signature: public boolean remove(Object o)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean remove(Object o)
focal_class.class_method_signature: RingBufferList.remove(int index)
focal_class.full_signature: public A remove(int index)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (int index)
focal_class.return: A
focal_class.signature: A remove(int index)
focal_class.class_method_signature: RingBufferList.removeAll(Collection<?> c)
focal_class.full_signature: public boolean removeAll(Collection<?> c)
focal_class.identifier: removeAll
focal_class.modifiers: public
focal_class.parameters: (Collection<?> c)
focal_class.return: boolean
focal_class.signature: boolean removeAll(Collection<?> c)
focal_class.class_method_signature: RingBufferList.retainAll(Collection<?> c)
focal_class.full_signature: public boolean retainAll(Collection<?> c)
focal_class.identifier: retainAll
focal_class.modifiers: public
focal_class.parameters: (Collection<?> c)
focal_class.return: boolean
focal_class.signature: boolean retainAll(Collection<?> c)
focal_class.class_method_signature: RingBufferList.subList(int fromIndex, int toIndex)
focal_class.full_signature: public List<A> subList(int fromIndex, int toIndex)
focal_class.identifier: subList
focal_class.modifiers: public
focal_class.parameters: (int fromIndex, int toIndex)
focal_class.return: List<A>
focal_class.signature: List<A> subList(int fromIndex, int toIndex)
focal_class.class_method_signature: RingBufferList.toArray()
focal_class.full_signature: public Object[] toArray()
focal_class.identifier: toArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Object[]
focal_class.signature: Object[] toArray()
focal_class.class_method_signature: RingBufferList.toArray(T[] a)
focal_class.full_signature: public T[] toArray(T[] a)
focal_class.identifier: toArray
focal_class.modifiers: public
focal_class.parameters: (T[] a)
focal_class.return: T[]
focal_class.signature: T[] toArray(T[] a)
focal_method.body: public boolean add(A a) {
  		if (end >= 0) {
  			end++;
  			if (end >= values.length) {
  				end = 0;
  			}
  			if (end == start) {
  				start++;
  			}
  			if (start >= values.length) {
  				start = 0;
  			}
  		} else {
  			start = 0;
  			end = 0;
  		}
  		values[end] = a;
  		return true;
  	}
focal_method.class_method_signature: RingBufferList.add(A a)
focal_method.full_signature: public boolean add(A a)
focal_method.identifier: add
focal_method.modifiers: public
focal_method.parameters: (A a)
focal_method.return: boolean
focal_method.signature: boolean add(A a)