java.lang.Object
omix.util.collections.WeakCollection<E>
omix.util.collections.WeakSet<E>
- All Implemented Interfaces:
Cloneable
,Iterable<E>
,Collection<E>
,Set<E>
public final class WeakSet<E> extends WeakCollection<E> implements Set<E>
-
Constructor Summary
Constructors Constructor Description WeakSet()
WeakSet(Collection<? extends E> collection)
-
Method Summary
Modifier and Type Method Description boolean
add(E e)
void
clear()
WeakSet<E>
clone()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
equals(Object o)
int
hashCode()
boolean
isEmpty()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
String
toString()
Methods inherited from class omix.util.collections.WeakCollection
addAll, forEach, iterator, parallelStream, removeIf, spliterator, stream, toArray, toArray
-
Constructor Details
-
Method Details
-
clone
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
removeAll
-
retainAll
-
clear
public void clear() -
equals
-
hashCode
public int hashCode() -
toString
-