Class InMemoryJobEventFinderSupport
- java.lang.Object
-
- it.tidalwave.util.spi.HierarchicFinderSupport<T,F>
-
- it.tidalwave.util.spi.FinderWithIdSupport<JobEvent,InMemoryJobEvent,ProjectRegistry.JobEventFinder>
-
- it.tidalwave.accounting.model.impl.InMemoryJobEventFinderSupport
-
- All Implemented Interfaces:
ProjectRegistry.JobEventFinder
,it.tidalwave.util.Finder<JobEvent>
,it.tidalwave.util.spi.ExtendedFinderSupport<JobEvent,ProjectRegistry.JobEventFinder>
,it.tidalwave.util.spi.FinderWithId<JobEvent,ProjectRegistry.JobEventFinder>
,java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
InMemoryJobEventFinder
,InMemoryJobEventFinderFromList
public class InMemoryJobEventFinderSupport extends it.tidalwave.util.spi.FinderWithIdSupport<JobEvent,InMemoryJobEvent,ProjectRegistry.JobEventFinder> implements ProjectRegistry.JobEventFinder
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InMemoryJobEventFinderSupport(InMemoryJobEventFinderSupport other, java.lang.Object override)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<JobEvent>
findById(it.tidalwave.util.Id id)
java.time.Duration
getDuration()
Money
getEarnings()
-
Methods inherited from class it.tidalwave.util.spi.FinderWithIdSupport
computeResults, findAll, 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, iterator, ofType, optionalFirstResult, optionalResult, result, results, stream
-
Methods inherited from interface it.tidalwave.accounting.model.ProjectRegistry.JobEventFinder
withId
-
-
-
-
Constructor Detail
-
InMemoryJobEventFinderSupport
public InMemoryJobEventFinderSupport(@Nonnull InMemoryJobEventFinderSupport other, @Nonnull java.lang.Object override)
-
-
Method Detail
-
findById
@Nonnull protected java.util.Optional<JobEvent> findById(@Nonnull it.tidalwave.util.Id id)
- Overrides:
findById
in classit.tidalwave.util.spi.FinderWithIdSupport<JobEvent,InMemoryJobEvent,ProjectRegistry.JobEventFinder>
-
getDuration
@Nonnull public java.time.Duration getDuration()
- Specified by:
getDuration
in interfaceProjectRegistry.JobEventFinder
-
getEarnings
@Nonnull public Money getEarnings()
- Specified by:
getEarnings
in interfaceProjectRegistry.JobEventFinder
-
-