RingBuffer

constructor(capacity: Int)

Creates an empty buffer that holds at most capacity elements.

Type Parameters

T

the element type.