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

All Superinterfaces:
Collection<E>, Iterable<E>, List<E>
All Known Implementing Classes:
ChainableArrayList, ChainableLinkedList

public interface ChainableList<E>
extends List<E>

List 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. 
 void add(int index, E element)
          Deprecated. 
 boolean addAll(Collection<? extends E> c)
          Deprecated. 
 boolean addAll(int index, Collection<? extends E> c)
          Deprecated. 
 void clear()
          Deprecated. 
 ChainableList<E> delete(int index)
           
 ChainableList<E> delete(Object o)
           
 ChainableList<E> deleteAll(Collection<?> c)
           
 ChainableList<E> empty()
           
 ChainableList<E> keepAll(Collection<?> c)
           
 ChainableList<E> put(E element)
           
 ChainableList<E> put(int index, E element)
           
 ChainableList<E> putAll(Collection<? extends E> c)
           
 ChainableList<E> putAll(int index, Collection<? extends E> c)
           
 E remove(int index)
          Deprecated. 
 boolean remove(Object o)
          Deprecated. 
 boolean removeAll(Collection<?> c)
          Deprecated. 
 ChainableList<E> replace(int index, E element)
           
 boolean retainAll(Collection<?> c)
          Deprecated. 
 E set(int index, E element)
          Deprecated. 
 
Methods inherited from interface java.util.List
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray
 

Method Detail

delete

ChainableList<E> delete(int index)
Parameters:
index -
Returns:
See Also:
List.remove(int)

delete

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

deleteAll

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

empty

ChainableList<E> empty()
Returns:
See Also:
List.clear()

keepAll

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

put

ChainableList<E> put(E element)
Parameters:
element -
Returns:
See Also:
List.add(Object)

put

ChainableList<E> put(int index,
                     E element)
Parameters:
index -
element -
Returns:
See Also:
List.add(int, Object)

putAll

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

putAll

ChainableList<E> putAll(int index,
                        Collection<? extends E> c)
Parameters:
index -
c -
Returns:
See Also:
List.addAll(int, Collection)

replace

ChainableList<E> replace(int index,
                         E element)
Parameters:
index -
element -
Returns:
See Also:
List.set(int, Object)

add

@Deprecated
boolean add(E e)
Deprecated. 

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

add

@Deprecated
void add(int index,
                    E element)
Deprecated. 

Specified by:
add in interface List<E>
See Also:
put(int, Object)

addAll

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

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

addAll

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

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

clear

@Deprecated
void clear()
Deprecated. 

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

remove

@Deprecated
E remove(int index)
Deprecated. 

Specified by:
remove in interface List<E>
See Also:
delete(int)

remove

@Deprecated
boolean remove(Object o)
Deprecated. 

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

removeAll

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

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

retainAll

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

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

set

@Deprecated
E set(int index,
                 E element)
Deprecated. 

Specified by:
set in interface List<E>
See Also:
replace(int, Object)