com.senn.magic.collections
Class ChainableTreeSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.TreeSet<E>
              extended by com.senn.magic.collections.ChainableTreeSet<E>
All Implemented Interfaces:
ChainableSet<E>, Serializable, Cloneable, Iterable<E>, Collection<E>, NavigableSet<E>, Set<E>, SortedSet<E>

public class ChainableTreeSet<E>
extends TreeSet<E>
implements ChainableSet<E>

TreeSet implementation of ChainableSet

Since:
3.5
Author:
Bart Thierens
Last modification: 23/01/2011
See Also:
Serialized Form

Constructor Summary
ChainableTreeSet()
           
ChainableTreeSet(Collection<? extends E> c)
           
ChainableTreeSet(Comparator<? super E> comparator)
           
ChainableTreeSet(SortedSet<E> s)
           
 
Method Summary
 ChainableSet<E> delete(Object o)
           
 ChainableSet<E> deleteAll(Collection<?> c)
           
 ChainableSet<E> empty()
           
 ChainableSet<E> keepAll(Collection<?> c)
           
 ChainableSet<E> put(E e)
           
 ChainableSet<E> putAll(Collection<? extends E> c)
           
 
Methods inherited from class java.util.TreeSet
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.senn.magic.collections.ChainableSet
add, addAll, clear, remove, removeAll, retainAll
 
Methods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Constructor Detail

ChainableTreeSet

public ChainableTreeSet()

ChainableTreeSet

public ChainableTreeSet(SortedSet<E> s)

ChainableTreeSet

public ChainableTreeSet(Collection<? extends E> c)

ChainableTreeSet

public ChainableTreeSet(Comparator<? super E> comparator)
Method Detail

delete

public ChainableSet<E> delete(Object o)
Specified by:
delete in interface ChainableSet<E>
Returns:
See Also:
Set.remove(Object)

deleteAll

public ChainableSet<E> deleteAll(Collection<?> c)
Specified by:
deleteAll in interface ChainableSet<E>
Returns:
See Also:
Set.removeAll(Collection)

empty

public ChainableSet<E> empty()
Specified by:
empty in interface ChainableSet<E>
Returns:
See Also:
Set.clear()

keepAll

public ChainableSet<E> keepAll(Collection<?> c)
Specified by:
keepAll in interface ChainableSet<E>
Returns:
See Also:
Set.retainAll(Collection)

put

public ChainableSet<E> put(E e)
Specified by:
put in interface ChainableSet<E>
Returns:
See Also:
Set.add(Object)

putAll

public ChainableSet<E> putAll(Collection<? extends E> c)
Specified by:
putAll in interface ChainableSet<E>
Returns:
See Also:
Set.addAll(Collection)