BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Class AbstractSet

java.lang.Object
  |
  +--brutil.AbstractListing
        |
        +--brutil.AbstractMultiSet
              |
              +--brutil.AbstractSet
All Implemented Interfaces:
Collection, MultiSet, Set
Direct Known Subclasses:
AbstractSortedList, ArraySet, LinkedSet

public abstract class AbstractSet
extends AbstractMultiSet
implements Set


Fields inherited from class brutil.AbstractListing
list
 
Constructor Summary
AbstractSet()
           
 
Method Summary
 java.lang.Object add(java.lang.Object elt)
          Add the specified object to the Set.
 
Methods inherited from class brutil.AbstractMultiSet
contains, find, iterator, numOccurences, remove, removeAll
 
Methods inherited from class brutil.AbstractListing
clear, isEmpty, listFactory, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface brutil.Set
contains, find, isEmpty, iterator, remove
 
Methods inherited from interface brutil.Collection
clear, size
 

Constructor Detail

AbstractSet

public AbstractSet()
Method Detail

add

public java.lang.Object add(java.lang.Object elt)
Add the specified object to the Set. Unless the implementing class is also a MultiSet, there may only be one instance of the object in the set.
Specified by:
add in interface Set
Overrides:
add in class AbstractMultiSet
Parameters:
elt - The object to add to the Set.
Returns:
Object if the item was previously in the set, null otherwise.


BRUtil - Making Java a Kinder, Gentler, Place to be.