public class SyncLinkedList extends LinkedList
LinkedList for synchronisation.modCount| Constructor and Description |
|---|
SyncLinkedList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
Adds the given Object to the List, if it's not already contained in the List.
|
boolean |
addAll(Collection c)
Adds the given Collection to the List.
|
boolean |
isEmpty()
Checks whether the List is Empty or not.
|
boolean |
remove(Object o)
Removes the first occurrence of the specified element from this list, if it is present.
|
Object |
removeFirst()
Removes the first Object in the List.
|
add, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic boolean add(Object o)
synchronized.add in interface Collectionadd in interface Dequeadd in interface Listadd in interface Queueadd in class LinkedListo - Object to be addedLinkedList.add(java.lang.Object)public boolean isEmpty()
synchronized.isEmpty in interface CollectionisEmpty in interface ListisEmpty in class AbstractCollectionAbstractCollection.isEmpty()public boolean addAll(Collection c)
synchronized.addAll in interface CollectionaddAll in interface ListaddAll in class LinkedListc - Collection to be addedLinkedList.addAll(java.util.Collection)public Object removeFirst()
synchronized.removeFirst in interface DequeremoveFirst in class LinkedListLinkedList.removeFirst()public boolean remove(Object o)
synchronized.remove in interface Collectionremove in interface Dequeremove in interface Listremove in class LinkedListo - Object to be removedLinkedList.remove(java.lang.Object)Copyright © 2012–2026 cismet GmbH. All rights reserved.