test_class.file: base/src/test/java/com/barchart/feed/base/collections/TestRingBufferSimple.java
test_class.identifier: TestRingBufferSimple
test_case.body: @Test
  	public void testAsArray() {
  
  		final RingBuffer<Integer> ring = new RingBufferSimple<Integer>(10);
  		assertEquals(ring.length(), 10);
  
  		ring.setHead(100, 100);
  
  		for (int k = 100; k < 110; k++) {
  			ring.set(k, k);
  		}
  
  		ring.set(102, null);
  		ring.set(107, null);
  		assertEquals(ring.count(), 8);
  
  		final Integer[] clone1 = ring.asArray(Integer.class);
  		final Integer[] clone2 = ring.asArray(Integer.class);
  
  		assertFalse(clone1 == clone2);
  		assertTrue(Arrays.equals(clone1, clone2));
  
  		for (int k = 0; k < 10; k++) {
  			assertEquals(ring.get(100 + k), clone1[k]);
  			assertEquals(ring.get(100 + k), clone2[k]);
  		}
  
  	}
test_case.class_method_signature: TestRingBufferSimple.testAsArray()
test_case.full_signature: @Test public void testAsArray()
test_case.identifier: testAsArray
test_case.invocations: assertEquals length setHead set set set assertEquals count asArray asArray assertFalse assertTrue equals assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAsArray()
focal_class.declarator: array
focal_class.modifier: protected final
focal_class.original_string: protected final V[] array;
focal_class.type: V[]
focal_class.var_name: array
focal_class.file: base/src/main/java/com/barchart/feed/base/collections/RingBufferSimple.java
focal_class.identifier: RingBufferSimple
focal_class.class_method_signature: RingBufferSimple.length()
focal_class.full_signature: @Override public final int length()
focal_class.identifier: length
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int length()
focal_class.class_method_signature: RingBufferSimple.arrayGet(final int clue)
focal_class.full_signature: @Override protected final V arrayGet(final int clue)
focal_class.identifier: arrayGet
focal_class.modifiers: @Override protected final
focal_class.parameters: (final int clue)
focal_class.return: V
focal_class.signature: V arrayGet(final int clue)
focal_class.class_method_signature: RingBufferSimple.arraySet(final int clue, final V value)
focal_class.full_signature: @Override protected final void arraySet(final int clue, final V value)
focal_class.identifier: arraySet
focal_class.modifiers: @Override protected final
focal_class.parameters: (final int clue, final V value)
focal_class.return: void
focal_class.signature: void arraySet(final int clue, final V value)
focal_class.class_method_signature: RingBufferSimple.RingBufferSimple(final int size)
focal_class.full_signature: @SuppressWarnings("unchecked") public  RingBufferSimple(final int size)
focal_class.identifier: RingBufferSimple
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final int size)
focal_class.signature:  RingBufferSimple(final int size)
focal_class.class_method_signature: RingBufferSimple.isEmpty(final int clue)
focal_class.full_signature: @Override protected final boolean isEmpty(final int clue)
focal_class.identifier: isEmpty
focal_class.modifiers: @Override protected final
focal_class.parameters: (final int clue)
focal_class.return: boolean
focal_class.signature: boolean isEmpty(final int clue)
focal_class.superclass: extends RingBufferBase<V>
focal_method.body: @Override
  	public final int length() {
  		return array.length;
  	}
focal_method.class_method_signature: RingBufferSimple.length()
focal_method.full_signature: @Override public final int length()
focal_method.identifier: length
focal_method.modifiers: @Override public final
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int length()