Package it.tidalwave.util.spi
Interface ExtendedFinderSupport<T,F extends Finder<T>>
- 
- All Superinterfaces:
- java.lang.Cloneable,- Finder<T>,- java.io.Serializable
 - All Known Subinterfaces:
- FinderWithId<T,F>
 - All Known Implementing Classes:
- FinderWithIdMapSupport,- FinderWithIdSupport
 
 public interface ExtendedFinderSupport<T,F extends Finder<T>> extends Finder<T> A utility interface for creating extendedFinders, it provides automatic covariant return types. Make your extendedFinderinterface to extend from this. For instance, a customDatefinder can be declared as:public interface DateFinder extends ExtendedFinderSupport<SomeClass, DateFinder> { public DateFinder before (Date date); public DateFinder after (Date date); }- Author:
- Fabrizio Giudici
- Status: draft API
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface it.tidalwave.util.FinderFinder.InMemorySortCriterion<U>, Finder.SortCriterion, Finder.SortDirection
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Ffrom(int firstResult)Tells theFinderthat only a subset of found items will be returned, starting from the given position.Fmax(int maxResults)Tells theFinderthat only a maximum number of found items will be returned.Fsort(Finder.SortCriterion criterion)Tells theFinderthat results will be sorted according to the given criterion, in ascending direction.Fsort(Finder.SortCriterion criterion, Finder.SortDirection direction)Tells theFinderthat results will be sorted according to the given criterion and direction.FwithContext(java.lang.Object context)Tells theFinderthat results should be created with the given context.- 
Methods inherited from interface it.tidalwave.util.Findercount, firstResult, forEach, from, from, iterator, max, max, ofType, optionalFirstResult, optionalResult, result, results, stream
 
- 
 
- 
- 
- 
Method Detail- 
from@Nonnull F from(@Nonnegative int firstResult) Tells theFinderthat only a subset of found items will be returned, starting from the given position.
 - 
max@Nonnull F max(@Nonnegative int maxResults) Tells theFinderthat only a maximum number of found items will be returned.
 - 
sort@Nonnull F sort(@Nonnull Finder.SortCriterion criterion) Tells theFinderthat results will be sorted according to the given criterion, in ascending direction.
 - 
sort@Nonnull F sort(@Nonnull Finder.SortCriterion criterion, @Nonnull Finder.SortDirection direction) Tells theFinderthat results will be sorted according to the given criterion and direction.
 - 
withContext@Nonnull F withContext(@Nonnull java.lang.Object context) Tells theFinderthat results should be created with the given context. This method can be called multiple times; contexts are accumulated.- Specified by:
- withContextin interface- Finder<T>
- Parameters:
- context- the context
- Returns:
- the Finder
 
 
- 
 
-