Class PersonFinderImpl2b
- java.lang.Object
-
- it.tidalwave.util.spi.HierarchicFinderSupport<Person,PersonFinder>
-
- it.tidalwave.thesefoolishthings.examples.extendedfinderexample.PersonFinderImpl2b
-
- All Implemented Interfaces:
PersonFinder
,Finder<Person>
,ExtendedFinderSupport<Person,PersonFinder>
,java.io.Serializable
,java.lang.Cloneable
public class PersonFinderImpl2b extends HierarchicFinderSupport<Person,PersonFinder> implements PersonFinder
A variant ofPersonRegistryImpl2a
that uses an internal status class.- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
Finder.InMemorySortCriterion<U>, Finder.SortCriterion, Finder.SortDirection
-
-
Field Summary
-
Fields inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
firstResult, maxResults
-
-
Constructor Summary
Constructors Constructor Description PersonFinderImpl2b(PersonFinderImpl2b other, java.lang.Object override)
PersonFinderImpl2b(java.util.List<Person> persons)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<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.HierarchicFinderSupport
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
-
PersonFinderImpl2b
public PersonFinderImpl2b(@Nonnull java.util.List<Person> persons)
-
PersonFinderImpl2b
public PersonFinderImpl2b(@Nonnull PersonFinderImpl2b 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<Person> computeResults()
Description copied from class:HierarchicFinderSupport
Subclasses can implement this method where *all* the raw results must be actually retrieved.- Overrides:
computeResults
in classHierarchicFinderSupport<Person,PersonFinder>
- Returns:
- the unprocessed results
-
-