Class InMemoryInvoiceFinderFromMap
- java.lang.Object
-
- it.tidalwave.util.spi.HierarchicFinderSupport<T,F>
-
- it.tidalwave.util.spi.FinderWithIdSupport<T,I,F>
-
- 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>
,java.io.Serializable
,java.lang.Cloneable
public class InMemoryInvoiceFinderFromMap extends it.tidalwave.util.spi.FinderWithIdMapSupport<Invoice,InMemoryInvoice,InvoiceRegistry.Finder> implements InvoiceRegistry.Finder
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InMemoryInvoiceFinderFromMap(InMemoryInvoiceFinderFromMap other, java.lang.Object override)
InMemoryInvoiceFinderFromMap(java.util.Map<it.tidalwave.util.Id,InMemoryInvoice> invoiceMapById)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Invoice>
computeResults()
Money
getEarnings()
InvoiceRegistry.Finder
withProject(Project project)
-
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, iterator, ofType, optionalFirstResult, optionalResult, result, results, stream
-
Methods inherited from interface it.tidalwave.accounting.model.InvoiceRegistry.Finder
withId
-
-
-
-
Constructor Detail
-
InMemoryInvoiceFinderFromMap
public InMemoryInvoiceFinderFromMap(@Nonnull java.util.Map<it.tidalwave.util.Id,InMemoryInvoice> invoiceMapById)
-
InMemoryInvoiceFinderFromMap
public InMemoryInvoiceFinderFromMap(@Nonnull InMemoryInvoiceFinderFromMap other, @Nonnull java.lang.Object override)
-
-
Method Detail
-
withProject
@Nonnull public InvoiceRegistry.Finder withProject(@Nonnull Project project)
- Specified by:
withProject
in interfaceInvoiceRegistry.Finder
-
computeResults
@Nonnull protected java.util.List<Invoice> computeResults()
- Overrides:
computeResults
in classit.tidalwave.util.spi.FinderWithIdSupport<Invoice,InMemoryInvoice,InvoiceRegistry.Finder>
-
getEarnings
@Nonnull public Money getEarnings()
- Specified by:
getEarnings
in interfaceInvoiceRegistry.Finder
-
-