public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares the specified object with this set for equality.
|
int |
hashCode() |
boolean |
removeAll(Collection<?> c) |
public boolean equals(Object o)
This implementation first checks if the specified object is this set; if so it returns true. Then, it checks if the specified object is a set whose size is identical to the size of this set; if not, it returns false. If so, it returns containsAll((Collection) o).
public int hashCode()
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface Set<E>
removeAll
in class AbstractCollection<E>
Copyright © 2015 Lucee