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

brutil
Class AbstractSortedSet

java.lang.Object
  |
  +--brutil.AbstractListing
        |
        +--brutil.AbstractMultiSet
              |
              +--brutil.AbstractSortedMultiSet
                    |
                    +--brutil.AbstractSortedSet
All Implemented Interfaces:
Collection, MultiSet, Set, SortedMultiSet, SortedSet
Direct Known Subclasses:
ArraySortedSet, LinkedSortedSet

public abstract class AbstractSortedSet
extends AbstractSortedMultiSet
implements SortedSet


Fields inherited from class brutil.AbstractListing
list
 
Constructor Summary
AbstractSortedSet()
           
 
Method Summary
 java.lang.Object add(java.lang.Object elt)
          Add the specified object to the Set.
 
Methods inherited from class brutil.AbstractSortedMultiSet
find, maxElement, minElement, nextElement, prevElement
 
Methods inherited from class brutil.AbstractMultiSet
contains, 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.SortedSet
maxElement, minElement, nextElement, prevElement
 
Methods inherited from interface brutil.Set
contains, find, isEmpty, iterator, remove
 
Methods inherited from interface brutil.Collection
clear, size
 
Methods inherited from interface brutil.MultiSet
numOccurences, removeAll
 

Constructor Detail

AbstractSortedSet

public AbstractSortedSet()
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 AbstractSortedMultiSet
Parameters:
o - The object to add to the Set.
Returns:
true if the item was not previously in the set, false otherwise.


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