com.senn.magic.collections
Interface ChainableSet<E>

All Superinterfaces:
Collection<E>, Iterable<E>, Set<E>
All Known Implementing Classes:
ChainableHashSet, ChainableLinkedHashSet, ChainableTreeSet

public interface ChainableSet<E>
extends Set<E>

Set sub interface that makes it possible to 'chain' actions

Since:
3.5
Author:
Bart Thierens
Last modification: 23/01/2011

Method Summary
 boolean add(E e)
          Deprecated. 
 boolean addAll(Collection<? extends E> c)
          Deprecated. 
 void clear()
          Deprecated. 
 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)
           
 boolean remove(Object o)
          Deprecated. 
 boolean removeAll(Collection<?> c)
          Deprecated. 
 boolean retainAll(Collection<?> c)
          Deprecated. 
 
Methods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Method Detail

delete

ChainableSet<E> delete(Object o)
Parameters:
o -
Returns:
See Also:
Set.remove(Object)

deleteAll

ChainableSet<E> deleteAll(Collection<?> c)
Parameters:
c -
Returns:
See Also:
Set.removeAll(Collection)

empty

ChainableSet<E> empty()
Returns:
See Also:
Set.clear()

keepAll

ChainableSet<E> keepAll(Collection<?> c)
Parameters:
c -
Returns:
See Also:
Set.retainAll(Collection)

put

ChainableSet<E> put(E e)
Parameters:
e -
Returns:
See Also:
Set.add(Object)

putAll

ChainableSet<E> putAll(Collection<? extends E> c)
Parameters:
c -
Returns:
See Also:
Set.addAll(Collection)

add

@Deprecated
boolean add(E e)
Deprecated. 

Specified by:
add in interface Collection<E>
Specified by:
add in interface Set<E>
See Also:
put(Object)

addAll

@Deprecated
boolean addAll(Collection<? extends E> c)
Deprecated. 

Specified by:
addAll in interface Collection<E>
Specified by:
addAll in interface Set<E>
See Also:
putAll(Collection)

clear

@Deprecated
void clear()
Deprecated. 

Specified by:
clear in interface Collection<E>
Specified by:
clear in interface Set<E>
See Also:
empty()

remove

@Deprecated
boolean remove(Object o)
Deprecated. 

Specified by:
remove in interface Collection<E>
Specified by:
remove in interface Set<E>
See Also:
delete(Object)

removeAll

@Deprecated
boolean removeAll(Collection<?> c)
Deprecated. 

Specified by:
removeAll in interface Collection<E>
Specified by:
removeAll in interface Set<E>
See Also:
deleteAll(Collection)

retainAll

@Deprecated
boolean retainAll(Collection<?> c)
Deprecated. 

Specified by:
retainAll in interface Collection<E>
Specified by:
retainAll in interface Set<E>
See Also:
keepAll(Collection)