Class PersonFinderImpl2
- java.lang.Object
-
- it.tidalwave.util.spi.FinderSupport<Person,PersonFinder>
-
- it.tidalwave.thesefoolishthings.examples.extendedfinderexample.PersonFinderImpl2
-
- All Implemented Interfaces:
PersonFinder
,Finder<Person>
,ExtendedFinderSupport<Person,PersonFinder>
,java.io.Serializable
,java.lang.Cloneable
public class PersonFinderImpl2 extends FinderSupport<Person,PersonFinder> implements PersonFinder
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
Finder.InMemorySortCriterion<TYPE>, Finder.SortCriterion, Finder.SortDirection
-
-
Constructor Summary
Constructors Constructor Description PersonFinderImpl2(PersonFinderImpl2 other, java.lang.Object override)
PersonFinderImpl2(java.util.List<Person> persons)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<? extends Person>
computeResults()
Subclasses can implement this method where *all* the raw results must be actually retrieved.PersonFinder
withFirstName(java.lang.String regex)
PersonFinder
withLastName(java.lang.String regex)
-
Methods inherited from class it.tidalwave.util.spi.FinderSupport
clone, clone, clonedWith, computeNeededResults, count, from, getSource, max, ofType, results, sort, sort, withContext
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.util.spi.ExtendedFinderSupport
from, max, sort, sort, withContext
-
Methods inherited from interface it.tidalwave.util.Finder
count, firstResult, iterator, ofType, optionalFirstResult, optionalResult, result, results, stream
-
-
-
-
Constructor Detail
-
PersonFinderImpl2
public PersonFinderImpl2(@Nonnull java.util.List<Person> persons)
-
PersonFinderImpl2
public PersonFinderImpl2(@Nonnull PersonFinderImpl2 other, @Nonnull java.lang.Object override)
-
-
Method Detail
-
withFirstName
@Nonnull public PersonFinder withFirstName(@Nonnull java.lang.String regex)
- Specified by:
withFirstName
in interfacePersonFinder
-
withLastName
@Nonnull public PersonFinder withLastName(@Nonnull java.lang.String regex)
- Specified by:
withLastName
in interfacePersonFinder
-
computeResults
@Nonnull protected java.util.List<? extends Person> computeResults()
Description copied from class:FinderSupport
Subclasses can implement this method where *all* the raw results must be actually retrieved.- Overrides:
computeResults
in classFinderSupport<Person,PersonFinder>
- Returns:
- the unprocessed results
-
-