Package com.jme3.util
Class RingBuffer<T>
- java.lang.Object
-
- com.jme3.util.RingBuffer<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
public class RingBuffer<T> extends java.lang.Object implements java.lang.Iterable<T>Ring buffer (fixed size queue) implementation using a circular array (array with wrap-around).
-
-
Constructor Summary
Constructors Constructor Description RingBuffer(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()java.util.Iterator<T>iterator()Tpop()voidpush(T item)intsize()
-