Class CircularList<T>

  • All Implemented Interfaces:
    Iterable<T>

    public class CircularList<T>
    extends Object
    implements Iterable<T>
    FIFO Circular List. Once the size is reached, it will overwrite previous entries
    • Constructor Detail

      • CircularList

        public CircularList​(int size)
    • Method Detail

      • resize

        public void resize​(int newsize)
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • getBufferSize

        public int getBufferSize()
      • get

        public T get​(int index)
      • add

        public void add​(T o)
      • clear

        public void clear()
      • toList

        public List<T> toList()