java.lang.Object
java.util.AbstractCollection
javax.swing.AbstractSet
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.Set
- public abstract class AbstractSet
- extends java.util.AbstractCollection
- implements java.util.Set
Empty
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString |
| Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray |
AbstractSet
public AbstractSet()
contained
boolean contained(java.lang.Object[] a1,
java.lang.Object b)
equals
public boolean equals(java.lang.Object o)
- Description copied from interface:
java.util.Set
- Compares the specified object to this for equality. For sets, the object
must be a set, the two must have the same size, and every element in
one must be in the other.
- Specified by:
equals in interface java.util.Set
hashCode
public int hashCode()
- Description copied from interface:
java.util.Set
- Returns the hash code for this set. In order to satisfy the contract of
equals, this is the sum of the hashcode of all elements in the set.
- Specified by:
hashCode in interface java.util.Set
removeAll
public boolean removeAll(java.util.Collection c)
- Description copied from interface:
java.util.Set
- Removes from this set all elements contained in the specified collection
(optional operation). If the argument is a set, this returns the
asymmetric set difference of the two sets.
- Specified by:
removeAll in interface java.util.Set