Class CircularList<T>

java.lang.Object
org.apache.solr.logging.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 Details

    • CircularList

      public CircularList(int size)
  • Method Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>