public class IntrinsicRoster<T> extends Object implements Roster<T>
| Constructor and Description |
|---|
IntrinsicRoster() |
IntrinsicRoster(Collection<? extends T> c) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(IntrinsicRosterNode<T> next,
T element) |
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
addFirst(T element) |
void |
addLast(T element) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
containsAll(Collection<?> c) |
T |
get(int index) |
T |
getFirst() |
T |
getLast() |
protected ReentrantReadWriteLock |
getLock() |
protected IntrinsicRosterNode<T> |
getNextInView(IntrinsicRosterNode<T> current) |
protected IntrinsicRosterNode<T> |
getPrevInView(IntrinsicRosterNode<T> current) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
T |
removeFirst() |
T |
removeLast() |
protected void |
removeNode(IntrinsicRosterNode<T> current) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic IntrinsicRoster()
public IntrinsicRoster(Collection<? extends T> c)
protected ReentrantReadWriteLock getLock()
protected IntrinsicRosterNode<T> getNextInView(IntrinsicRosterNode<T> current)
protected IntrinsicRosterNode<T> getPrevInView(IntrinsicRosterNode<T> current)
public int size()
public boolean isEmpty()
public boolean contains(Object obj)
public Object[] toArray()
public <U> U[] toArray(U[] a)
public T getFirst()
public T getLast()
protected void add(IntrinsicRosterNode<T> next, T element)
public void addLast(T element)
public boolean add(T element)
protected void removeNode(IntrinsicRosterNode<T> current)
public T removeFirst()
public T removeLast()
removeLast in interface Roster<T>public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>Copyright © 2017. All rights reserved.