From f9f881e59c78e3036cb3f956bc97cfc3197f620d Mon Sep 17 00:00:00 2001
From: Sven Gothel
* Integer[] source = new Integer[10];
* // fill source with content ..
- * Ringbuffer
*
@@ -91,12 +89,12 @@ public class SyncedRingbuffercopyFrom
into the internal array.
*
copyFrom
is null
*/
- public SyncedRingbuffer(T[] copyFrom, AllocEmptyArray* Example for a 10 element Integer array: *
- * Ringbuffer* *rb = new SyncedRingbuffer (10, new Ringbuffer.AllocEmptyArray () { - * public Integer[] newArray(int size) { - * return new Integer[size]; - * } } ); + * Ringbuffer rb = new SyncedRingbuffer (10, Integer[].class); *
@@ -117,13 +112,13 @@ public class SyncedRingbuffer
* Implementation will allocate an internal array of size capacity
.
*