org.apache.solr.logging
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
CircularList
public CircularList(int size)
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>
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.