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