Package it.tidalwave.util.spi
Class ArrayListFinder<T>
- java.lang.Object
-
- it.tidalwave.util.spi.FinderSupport<T,Finder<T>>
-
- it.tidalwave.util.spi.SimpleFinderSupport<T>
-
- it.tidalwave.util.spi.ArrayListFinder<T>
-
- Type Parameters:
T- the type of contained items
- All Implemented Interfaces:
Finder<T>,Serializable,Cloneable
public class ArrayListFinder<T> extends SimpleFinderSupport<T>
An implementation ofFinderwhich holds an immutable list of items.- Version:
- $Id: Class.java,v 631568052e17 2013/02/19 15:45:02 fabrizio $
- Author:
- Fabrizio Giudici ([email protected])
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
Finder.FilterSortCriterion<TYPE>, Finder.SortCriterion, Finder.SortDirection
-
-
Constructor Summary
Constructors Constructor Description ArrayListFinder(ArrayListFinder<T> other, Object override)ArrayListFinder(Collection<T> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<? extends T>computeResults()Subclasses can implement this method where *all* the raw results must be actually retrieved.-
Methods inherited from class it.tidalwave.util.spi.FinderSupport
clone, clone, computeNeededResults, count, emptyFinder, firstResult, from, getSource, max, ofType, result, results, sort, sort, withContext
-
-
-
-
Constructor Detail
-
ArrayListFinder
public ArrayListFinder(@Nonnull Collection<T> items)
-
ArrayListFinder
public ArrayListFinder(@Nonnull ArrayListFinder<T> other, @Nonnull Object override)
-
-
Method Detail
-
computeResults
@Nonnull protected List<? extends T> computeResults()
Description copied from class:FinderSupportSubclasses can implement this method where *all* the raw results must be actually retrieved.- Overrides:
computeResultsin classFinderSupport<T,Finder<T>>- Returns:
- the unprocessed results
-
-