T - @NotThreadSafe public class RingBuffer<T> extends Object implements Queue<T>
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(T t)  | 
boolean | 
addAll(Collection<? extends T> c)  | 
void | 
clear()  | 
boolean | 
contains(Object o)  | 
boolean | 
containsAll(Collection<?> c)  | 
static <T> RingBuffer<T> | 
create(int size)  | 
T | 
element()  | 
boolean | 
isEmpty()  | 
Iterator<T> | 
iterator()  | 
int | 
maxSize()  | 
boolean | 
offer(T t)  | 
T | 
peek()  | 
T | 
poll()  | 
T | 
remove()  | 
boolean | 
remove(Object o)  | 
boolean | 
removeAll(Collection<?> c)  | 
boolean | 
retainAll(Collection<?> c)  | 
int | 
size()  | 
Object[] | 
toArray()  | 
<S> S[] | 
toArray(S[] a)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic static <T> RingBuffer<T> create(int size)
public void clear()
clear in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public int size()
size in interface Collection<T>public int maxSize()
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 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>public boolean add(T t)
Copyright © 2020. All rights reserved.