public class WeakHashSet<T> extends Object implements Set<T>, Cloneable
WeakHashMap
,
HashSet
Constructor and Description |
---|
WeakHashSet() |
WeakHashSet(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> coll) |
void |
clear() |
WeakHashSet<T> |
clone() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> coll) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> coll) |
boolean |
retainAll(Collection<?> coll) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] arr) |
String |
toString() |
public boolean add(T o)
public boolean remove(Object o)
public int size()
public boolean isEmpty()
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> coll)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean removeAll(Collection<?> coll)
public boolean retainAll(Collection<?> coll)
public boolean addAll(Collection<? extends T> coll)
public Object[] toArray()
public <T> T[] toArray(T[] arr)
public boolean equals(Object o)
public int hashCode()
public WeakHashSet<T> clone()
Copyright © 2001-2015 JRuby. All Rights Reserved.