public static <T> Buffer<T> ofCapacity(final int capacity) {
		return new Buffer<>(capacity);
	}
Create a new ring buffer with the given {@code capacity}.

@param <T> the element type
@param capacity the buffer capacity
@return a new ring buffer with the given capacity
@throws NegativeArraySizeException if the given {@code capacity} is
        negative
jenetics/src/main/java/io/jenetics/util/Buffer.java