Class InMemoryInvoiceFinderFromMap
java.lang.Object
it.tidalwave.util.spi.HierarchicFinderSupport<Invoice,InvoiceRegistry.Finder>
it.tidalwave.util.spi.FinderWithIdSupport<Invoice,InMemoryInvoice,InvoiceRegistry.Finder>
it.tidalwave.util.spi.FinderWithIdMapSupport<Invoice,InMemoryInvoice,InvoiceRegistry.Finder>
it.tidalwave.accounting.model.impl.InMemoryInvoiceFinderFromMap
- All Implemented Interfaces:
InvoiceRegistry.Finder
,it.tidalwave.util.Finder<Invoice>
,it.tidalwave.util.spi.ExtendedFinderSupport<Invoice,
,InvoiceRegistry.Finder> it.tidalwave.util.spi.FinderWithId<Invoice,
,InvoiceRegistry.Finder> Serializable
,Cloneable
public class InMemoryInvoiceFinderFromMap
extends it.tidalwave.util.spi.FinderWithIdMapSupport<Invoice,InMemoryInvoice,InvoiceRegistry.Finder>
implements InvoiceRegistry.Finder
- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder
it.tidalwave.util.Finder.InMemorySortCriterion<U>, it.tidalwave.util.Finder.SortCriterion, it.tidalwave.util.Finder.SortDirection
-
Field Summary
Fields inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
firstResult, maxResults
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryInvoiceFinderFromMap
(InMemoryInvoiceFinderFromMap other, Object override) InMemoryInvoiceFinderFromMap
(Map<it.tidalwave.util.Id, InMemoryInvoice> invoiceMapById) -
Method Summary
Methods inherited from class it.tidalwave.util.spi.FinderWithIdMapSupport
findAll, findById
Methods inherited from class it.tidalwave.util.spi.FinderWithIdSupport
streamImpl, withId
Methods inherited from class it.tidalwave.util.spi.HierarchicFinderSupport
clone, clone, clonedWith, computeNeededResults, count, from, getContexts, getSource, max, ofType, results, sort, sort, toString, withContext
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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, forEach, from, from, iterator, max, max, ofType, optionalFirstResult, optionalResult, result, results, stream
Methods inherited from interface it.tidalwave.accounting.model.InvoiceRegistry.Finder
withId
-
Constructor Details
-
InMemoryInvoiceFinderFromMap
public InMemoryInvoiceFinderFromMap(@Nonnull Map<it.tidalwave.util.Id, InMemoryInvoice> invoiceMapById) -
InMemoryInvoiceFinderFromMap
public InMemoryInvoiceFinderFromMap(@Nonnull InMemoryInvoiceFinderFromMap other, @Nonnull Object override)
-
-
Method Details
-
withProject
- Specified by:
withProject
in interfaceInvoiceRegistry.Finder
-
computeResults
- Overrides:
computeResults
in classit.tidalwave.util.spi.FinderWithIdSupport<Invoice,
InMemoryInvoice, InvoiceRegistry.Finder>
-
getEarnings
- Specified by:
getEarnings
in interfaceInvoiceRegistry.Finder
-