Class InMemoryJobEventGroup
- java.lang.Object
-
- it.tidalwave.accounting.model.impl.InMemoryJobEvent
-
- it.tidalwave.accounting.model.impl.InMemoryJobEventGroup
-
- All Implemented Interfaces:
JobEvent,JobEventGroup,JobEventGroupSpi,JobEventSpi,it.tidalwave.role.Composite<JobEvent,it.tidalwave.util.Finder<JobEvent>>,it.tidalwave.role.Identifiable,it.tidalwave.role.SimpleComposite<JobEvent>,it.tidalwave.util.As
@Immutable public class InMemoryJobEventGroup extends InMemoryJobEvent implements JobEventGroupSpi
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.role.Composite
it.tidalwave.role.Composite.Visitor<T extends java.lang.Object,R extends java.lang.Object>
-
Nested classes/interfaces inherited from interface it.tidalwave.accounting.model.JobEvent
JobEvent.Builder, JobEvent.Type
-
-
Field Summary
-
Fields inherited from class it.tidalwave.accounting.model.impl.InMemoryJobEvent
description, id, name
-
-
Constructor Summary
Constructors Constructor Description InMemoryJobEventGroup(JobEvent.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectRegistry.JobEventFinderfindChildren()java.time.LocalDateTimegetDateTime()Returns the datetime of the event.java.time.DurationgetDuration()Returns the duration of the event.MoneygetEarnings()Returns the earnings for the event.JobEvent.BuildertoBuilder()Returns a builder pre-populated with all the attributes.-
Methods inherited from class it.tidalwave.accounting.model.impl.InMemoryJobEvent
builder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.accounting.model.spi.JobEventSpi
getDescription, getName
-
-
-
-
Constructor Detail
-
InMemoryJobEventGroup
public InMemoryJobEventGroup(@Nonnull JobEvent.Builder builder)
-
-
Method Detail
-
toBuilder
@Nonnull public JobEvent.Builder toBuilder()
Returns a builder pre-populated with all the attributes.- Specified by:
toBuilderin interfaceJobEvent- Specified by:
toBuilderin classInMemoryJobEvent- Returns:
- the builder
-
getDateTime
@Nonnull public java.time.LocalDateTime getDateTime()
Returns the datetime of the event.- Specified by:
getDateTimein interfaceJobEventSpi- Specified by:
getDateTimein classInMemoryJobEvent- Returns:
- the date
-
getEarnings
@Nonnull public Money getEarnings()
Returns the earnings for the event.- Specified by:
getEarningsin interfaceJobEventSpi- Specified by:
getEarningsin classInMemoryJobEvent- Returns:
- the earnings
-
getDuration
@Nonnull public java.time.Duration getDuration()
Returns the duration of the event.- Specified by:
getDurationin interfaceJobEventSpi- Specified by:
getDurationin classInMemoryJobEvent- Returns:
- the duration
-
findChildren
@Nonnull public ProjectRegistry.JobEventFinder findChildren()
- Specified by:
findChildrenin interfaceit.tidalwave.role.Composite<JobEvent,it.tidalwave.util.Finder<JobEvent>>- Specified by:
findChildrenin interfaceJobEventGroup
-
-