ch.elca.el4j.util.collections
Interface ExtendedList<T>

Type Parameters:
T - the member type.
All Superinterfaces:
Collection<T>, Iterable<T>, List<T>
All Known Subinterfaces:
ExtendedReorderableList<T>, ExtendedWritableList<T>, FilteredList<T>, TransformedList<I,O>
All Known Implementing Classes:
DefaultFilteredList, DefaultTransformedList, ExtendedArrayList

public interface ExtendedList<T>
extends List<T>

A slightly extended Iterable.

Author:
Adrian Moos (AMS)
File-location:
ExtendedList
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Method Summary
 FilteredList<T> filtered(Filter<? super T> filter)
          Convenience method returning a filtered view on this collection.
<O> TransformedList<T,O>
mapped(Function<? super T,O> function)
          Convenience method returning a TransformedList view to this list.
 T[] toArray(Class<T> c)
           
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

toArray

T[] toArray(Class<T> c)
Parameters:
c - the element type for the new array
Returns:
an new array containing this list's contents

filtered

FilteredList<T> filtered(Filter<? super T> filter)
Convenience method returning a filtered view on this collection.

Parameters:
filter - the filter deciding which elements are included

mapped

<O> TransformedList<T,O> mapped(Function<? super T,O> function)
Convenience method returning a TransformedList view to this list.

Parameters:
function - the transformation function to apply to each element
Returns:
see above


Copyright © 2005-2011 ELCA. All Rights Reserved.