Package org.apache.openjpa.lib.util
Class ReferenceHashSet
java.lang.Object
org.apache.openjpa.lib.util.ReferenceHashSet
- All Implemented Interfaces:
Serializable
,Iterable
,Collection
,Set
A set whose values may be stored as weak or soft references.
- Author:
- Abe White
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct a set with the given reference type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection coll) void
clear()
boolean
boolean
containsAll
(Collection coll) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection coll) boolean
retainAll
(Collection coll) int
size()
Object[]
toArray()
Object[]
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ReferenceHashSet
Construct a set with the given reference type.
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceSet
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceSet
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceSet
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceSet
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceSet
-
iterator
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceSet
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceSet
-
retainAll
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceSet
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
hashCode
public int hashCode() -
equals
-