class CollectionDecorator<T> extends AbstractCollection<Referrer<T>> implements Collection<Referrer<T>>
| Modifier and Type | Class and Description |
|---|---|
private class |
CollectionDecorator.Iter<T> |
| Modifier and Type | Field and Description |
|---|---|
private Collection<T> |
col |
private boolean |
enque |
private ReferenceQueuingFactory<T,Referrer<T>> |
rqf |
private boolean |
temporary |
| Constructor and Description |
|---|
CollectionDecorator(Collection<T> col,
ReferenceQueuingFactory<T,Referrer<T>> rqf,
boolean enque,
boolean temporary) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Referrer<T> t) |
Iterator<Referrer<T>> |
iterator() |
int |
size() |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayprivate final Collection<T> col
private final ReferenceQueuingFactory<T,Referrer<T>> rqf
private final boolean enque
private final boolean temporary
CollectionDecorator(Collection<T> col, ReferenceQueuingFactory<T,Referrer<T>> rqf, boolean enque, boolean temporary)
public int size()
size in interface Collection<Referrer<T>>size in class AbstractCollection<Referrer<T>>public boolean add(Referrer<T> t)
add in interface Collection<Referrer<T>>add in class AbstractCollection<Referrer<T>>Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.