Class InMemoryFlatJobEvent
- java.lang.Object
-
- it.tidalwave.accounting.model.impl.InMemoryJobEvent
-
- it.tidalwave.accounting.model.impl.InMemoryFlatJobEvent
-
- All Implemented Interfaces:
JobEvent
,FlatJobEventSpi
,JobEventSpi
,it.tidalwave.role.Identifiable
,it.tidalwave.util.As
@Immutable public class InMemoryFlatJobEvent extends InMemoryJobEvent implements FlatJobEventSpi
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
-
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 InMemoryFlatJobEvent(JobEvent.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTime
getDateTime()
Returns the datetime of the event.java.time.Duration
getDuration()
Returns the duration of the event.JobEvent.Builder
toBuilder()
Returns a builder pre-populated with all the attributes.-
Methods inherited from class it.tidalwave.accounting.model.impl.InMemoryJobEvent
builder, getEarnings
-
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.FlatJobEventSpi
getDate
-
Methods inherited from interface it.tidalwave.accounting.model.spi.JobEventSpi
getDescription, getEarnings, getName
-
-
-
-
Constructor Detail
-
InMemoryFlatJobEvent
public InMemoryFlatJobEvent(@Nonnull JobEvent.Builder builder)
-
-
Method Detail
-
toBuilder
@Nonnull public JobEvent.Builder toBuilder()
Returns a builder pre-populated with all the attributes.- Specified by:
toBuilder
in interfaceJobEvent
- Specified by:
toBuilder
in classInMemoryJobEvent
- Returns:
- the builder
-
getDateTime
@Nonnull public java.time.LocalDateTime getDateTime()
Returns the datetime of the event.- Specified by:
getDateTime
in interfaceJobEventSpi
- Specified by:
getDateTime
in classInMemoryJobEvent
- Returns:
- the date
-
getDuration
@Nonnull public java.time.Duration getDuration()
Returns the duration of the event.- Specified by:
getDuration
in interfaceJobEventSpi
- Specified by:
getDuration
in classInMemoryJobEvent
- Returns:
- the duration
-
-