Package org.alfresco.solr
Class BoundedDeque<T>
- java.lang.Object
-
- org.alfresco.solr.BoundedDeque<T>
-
-
Constructor Summary
Constructors Constructor Description BoundedDeque(int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T add)
LinkedBlockingDeque<T>
getDeque()
Get a copy of the deque.T
getLast()
Iterator<T>
iterator()
void
setDeque(LinkedBlockingDeque<T> deque)
int
size()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
public int size()
- Returns:
- int
-
add
public void add(T add)
-
getLast
public T getLast()
-
getDeque
public LinkedBlockingDeque<T> getDeque()
Get a copy of the deque.
-
setDeque
public void setDeque(LinkedBlockingDeque<T> deque)
-
-