abstract class ReadResolveFixCollectionCircularReferences<T> extends SerializationOfReferenceCollection<T> implements List<T>, Set<T>, SortedSet<T>, NavigableSet<T>, Queue<T>, Deque<T>, java.util.concurrent.BlockingQueue<T>, java.util.concurrent.BlockingDeque<T>
Modifier and Type | Field and Description |
---|---|
private boolean |
built |
private Collection<T> |
serialBuilt |
Constructor and Description |
---|
ReadResolveFixCollectionCircularReferences() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
addFirst(T e) |
void |
addLast(T e) |
(package private) Collection<T> |
build() |
T |
ceiling(T e) |
Comparator<? super T> |
comparator() |
Iterator<T> |
descendingIterator() |
NavigableSet<T> |
descendingSet() |
int |
drainTo(Collection<? super T> c) |
int |
drainTo(Collection<? super T> c,
int maxElements) |
T |
element() |
boolean |
equals(Object o)
Because equals and hashCode are not defined for collections, we
cannot guarantee consistent behaviour by implementing equals and
hashCode.
|
T |
first() |
T |
floor(T e) |
T |
get(int index) |
(package private) abstract Class |
getClazz() |
(package private) abstract Collection<Referrer<T>> |
getCollection() |
T |
getFirst() |
T |
getLast() |
(package private) Collection<T> |
getSerialBuilt() |
(package private) abstract Ref |
getType() |
int |
hashCode() |
SortedSet<T> |
headSet(T toElement) |
NavigableSet<T> |
headSet(T toElement,
boolean inclusive) |
T |
higher(T e) |
int |
indexOf(Object o) |
(package private) boolean |
isBuilt() |
Iterator<T> |
iterator() |
T |
last() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
lower(T e) |
boolean |
offer(T e) |
boolean |
offer(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
offerFirst(T e) |
boolean |
offerFirst(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
offerLast(T e) |
boolean |
offerLast(T e,
long timeout,
java.util.concurrent.TimeUnit unit) |
T |
peek() |
T |
peekFirst() |
T |
peekLast() |
T |
poll() |
T |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
T |
pollFirst() |
T |
pollFirst(long timeout,
java.util.concurrent.TimeUnit unit) |
T |
pollLast() |
T |
pollLast(long timeout,
java.util.concurrent.TimeUnit unit) |
T |
pop() |
void |
push(T e) |
void |
put(T e) |
void |
putFirst(T e) |
void |
putLast(T e) |
private void |
readObject(ObjectInputStream in) |
(package private) Object |
readResolve() |
int |
remainingCapacity() |
T |
remove() |
T |
remove(int index) |
T |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
T |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
T |
set(int index,
T element) |
(package private) void |
setBuilt() |
(package private) Collection<T> |
setSerialBuilt(Collection<T> serialBuilt) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
NavigableSet<T> |
subSet(T fromElement,
boolean fromInclusive,
T toElement,
boolean toInclusive) |
SortedSet<T> |
subSet(T fromElement,
T toElement) |
SortedSet<T> |
tailSet(T fromElement) |
NavigableSet<T> |
tailSet(T fromElement,
boolean inclusive) |
T |
take() |
T |
takeFirst() |
T |
takeLast() |
private void |
writeObject(ObjectOutputStream out) |
(package private) Object |
writeReplace() |
create
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
contains, remove
parallelStream, removeIf, stream
private volatile Collection<T> serialBuilt
private volatile boolean built
ReadResolveFixCollectionCircularReferences()
Collection<T> build() throws InstantiationException, IllegalAccessException, ObjectStreamException
build
in class SerializationOfReferenceCollection<T>
InstantiationException
IllegalAccessException
ObjectStreamException
abstract Ref getType()
abstract Collection<Referrer<T>> getCollection()
abstract Class getClazz()
Collection<T> getSerialBuilt()
Collection<T> setSerialBuilt(Collection<T> serialBuilt)
serialBuilt
- the serialBuilt to setboolean isBuilt()
void setBuilt()
public int hashCode()
public boolean equals(Object o)
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in interface java.util.concurrent.BlockingDeque<T>
iterator
in interface Deque<T>
iterator
in interface List<T>
iterator
in interface NavigableSet<T>
iterator
in interface Set<T>
iterator
in class AbstractCollection<T>
public int size()
public boolean add(T t)
add
in interface Collection<T>
add
in interface java.util.concurrent.BlockingDeque<T>
add
in interface java.util.concurrent.BlockingQueue<T>
add
in interface Deque<T>
add
in interface List<T>
add
in interface Queue<T>
add
in interface Set<T>
add
in class AbstractCollection<T>
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
final Object writeReplace()
final Object readResolve() throws ObjectStreamException
ObjectStreamException
public boolean addAll(int index, Collection<? extends T> c)
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>
public Comparator<? super T> comparator()
comparator
in interface SortedSet<T>
public T lower(T e)
lower
in interface NavigableSet<T>
public T floor(T e)
floor
in interface NavigableSet<T>
public T ceiling(T e)
ceiling
in interface NavigableSet<T>
public T higher(T e)
higher
in interface NavigableSet<T>
public T pollFirst()
public T pollLast()
public NavigableSet<T> descendingSet()
descendingSet
in interface NavigableSet<T>
public Iterator<T> descendingIterator()
descendingIterator
in interface Deque<T>
descendingIterator
in interface NavigableSet<T>
public NavigableSet<T> subSet(T fromElement, boolean fromInclusive, T toElement, boolean toInclusive)
subSet
in interface NavigableSet<T>
public NavigableSet<T> headSet(T toElement, boolean inclusive)
headSet
in interface NavigableSet<T>
public NavigableSet<T> tailSet(T fromElement, boolean inclusive)
tailSet
in interface NavigableSet<T>
public boolean offer(T e)
offer
in interface java.util.concurrent.BlockingDeque<T>
offer
in interface java.util.concurrent.BlockingQueue<T>
offer
in interface Deque<T>
offer
in interface Queue<T>
public T remove()
public T poll()
public T element()
public T peek()
public void addFirst(T e)
addFirst
in interface java.util.concurrent.BlockingDeque<T>
addFirst
in interface Deque<T>
public void addLast(T e)
addLast
in interface java.util.concurrent.BlockingDeque<T>
addLast
in interface Deque<T>
public boolean offerFirst(T e)
offerFirst
in interface java.util.concurrent.BlockingDeque<T>
offerFirst
in interface Deque<T>
public boolean offerLast(T e)
offerLast
in interface java.util.concurrent.BlockingDeque<T>
offerLast
in interface Deque<T>
public T removeFirst()
removeFirst
in interface Deque<T>
public T removeLast()
removeLast
in interface Deque<T>
public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface java.util.concurrent.BlockingDeque<T>
removeFirstOccurrence
in interface Deque<T>
public boolean removeLastOccurrence(Object o)
removeLastOccurrence
in interface java.util.concurrent.BlockingDeque<T>
removeLastOccurrence
in interface Deque<T>
public void push(T e)
push
in interface java.util.concurrent.BlockingDeque<T>
push
in interface Deque<T>
public void put(T e) throws InterruptedException
put
in interface java.util.concurrent.BlockingDeque<T>
put
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public boolean offer(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offer
in interface java.util.concurrent.BlockingDeque<T>
offer
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public T take() throws InterruptedException
take
in interface java.util.concurrent.BlockingDeque<T>
take
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public T poll(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
poll
in interface java.util.concurrent.BlockingDeque<T>
poll
in interface java.util.concurrent.BlockingQueue<T>
InterruptedException
public int remainingCapacity()
remainingCapacity
in interface java.util.concurrent.BlockingQueue<T>
public int drainTo(Collection<? super T> c)
drainTo
in interface java.util.concurrent.BlockingQueue<T>
public int drainTo(Collection<? super T> c, int maxElements)
drainTo
in interface java.util.concurrent.BlockingQueue<T>
public void putFirst(T e) throws InterruptedException
putFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public void putLast(T e) throws InterruptedException
putLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public boolean offerFirst(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public boolean offerLast(T e, long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
offerLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T takeFirst() throws InterruptedException
takeFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T takeLast() throws InterruptedException
takeLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T pollFirst(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollFirst
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
public T pollLast(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
pollLast
in interface java.util.concurrent.BlockingDeque<T>
InterruptedException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.