public class RingBufferModel<T>
extends javax.swing.AbstractListModel
implements java.util.Collection<T>
| Constructor and Description |
|---|
RingBufferModel(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
T |
getElementAt(int index) |
int |
getSize() |
T |
head() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
T |
peek(int index) |
void |
put(T value) |
void |
putAll(java.util.Collection<T> values) |
void |
putAll(T[] values) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void clear()
clear in interface java.util.Collection<T>public int getSize()
getSize in interface javax.swing.ListModelpublic T peek(int index)
public T head()
public void put(T value)
public void putAll(T[] values)
public void putAll(java.util.Collection<T> values)
public T getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic int size()
size in interface java.util.Collection<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <S> S[] toArray(S[] a)
toArray in interface java.util.Collection<T>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>