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

All Superinterfaces:
Collection<E>, Iterable<E>, Queue<E>
All Known Implementing Classes:
ChainablePriorityQueue

public interface ChainableQueue<E>
extends Queue<E>

Queue 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. 
 ChainableQueue<E> delete(Object o)
           
 ChainableQueue<E> deleteAll(Collection<?> c)
           
 ChainableQueue<E> empty()
           
 ChainableQueue<E> keepAll(Collection<?> c)
           
 boolean offer(E e)
          Deprecated. 
 ChainableQueue<E> put(E e)
           
 ChainableQueue<E> putAll(Collection<? extends E> c)
           
 boolean remove(Object o)
          Deprecated. 
 boolean removeAll(Collection<?> c)
          Deprecated. 
 boolean retainAll(Collection<?> c)
          Deprecated. 
 ChainableQueue<E> set(E e)
           
 
Methods inherited from interface java.util.Queue
element, peek, poll, remove
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 

Method Detail

delete

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

deleteAll

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

empty

ChainableQueue<E> empty()
Returns:
See Also:
Collection.clear()

keepAll

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

put

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

putAll

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

set

ChainableQueue<E> set(E e)
Parameters:
e -
Returns:
See Also:
Queue.offer(Object)

add

@Deprecated
boolean add(E e)
Deprecated. 

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

addAll

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

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

clear

@Deprecated
void clear()
Deprecated. 

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

offer

@Deprecated
boolean offer(E e)
Deprecated. 

Specified by:
offer in interface Queue<E>
See Also:
set(Object)

remove

@Deprecated
boolean remove(Object o)
Deprecated. 

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

removeAll

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

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

retainAll

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

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