class ReferenceSet<T> extends ReferenceCollection<T> implements Set<T>
ReferenceCollection
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ReferenceSet(Set<Referrer<T>> col,
Ref type,
boolean gcThreads,
long gcCycle) |
ReferenceSet(Set<Referrer<T>> col,
ReferenceQueuingFactory<T,Referrer<T>> rqf,
Ref type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Because equals and hashCode are not defined for collections, we
cannot guarantee consistent behaviour by implementing equals and
hashCode.
|
int |
hashCode() |
private void |
readObject(ObjectInputStream stream) |
add, addAll, clear, contains, containsAll, getRef, getRQF, isEmpty, iterator, processQueue, remove, size, toString, wrapObj, writeReplace
removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
private static final long serialVersionUID
private void readObject(ObjectInputStream stream) throws InvalidObjectException
InvalidObjectException
public boolean equals(Object o)
ReferenceCollection
equals
in interface Collection<T>
equals
in interface Set<T>
equals
in class ReferenceCollection<T>
Collection.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface Set<T>
hashCode
in class ReferenceCollection<T>
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.