From f9f881e59c78e3036cb3f956bc97cfc3197f620d Mon Sep 17 00:00:00 2001
From: Sven Gothel
*
* User needs to synchronize above methods w/ the lock-free
* w/ {@link #get() get*(..)} and {@link #put(Object) put*(..)} methods,
@@ -99,10 +100,7 @@ public class LFRingbuffer
* Integer[] source = new Integer[10];
* // fill source with content ..
- * Ringbuffer
*
@@ -113,12 +111,12 @@ public class LFRingbuffercopyFrom
into the internal array.
*
copyFrom
is null
*/
- public LFRingbuffer(T[] copyFrom, AllocEmptyArray* Example for a 10 element Integer array: *
- * Ringbuffer* *rb = new LFRingbuffer (10, new Ringbuffer.AllocEmptyArray () { - * public Integer[] newArray(int size) { - * return new Integer[size]; - * } } ); + * Ringbuffer rb = new LFRingbuffer (10, Integer[].class); *
@@ -139,15 +134,15 @@ public class LFRingbuffer
* Implementation will allocate an internal array of size capacity
plus one.
*