Class InMemoryJobEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String description  
      protected it.tidalwave.util.Id id  
      protected java.lang.String name  
      • Fields inherited from interface it.tidalwave.role.Identifiable

        _Identifiable_
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected InMemoryJobEvent​(JobEvent.Builder builder)
      Creates a new instance from a builder.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static JobEvent.Builder builder()
      Creates a new builder.
      abstract java.time.LocalDateTime getDateTime()
      Returns the datetime of the event.
      abstract java.time.Duration getDuration()
      Returns the duration of the event.
      abstract Money getEarnings()
      Returns the earnings for the event.
      abstract JobEvent.Builder toBuilder()
      Returns a builder pre-populated with all the attributes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface it.tidalwave.util.As

        as, as, asMany, asMany, maybeAs, maybeAs
      • Methods inherited from interface it.tidalwave.role.Identifiable

        getId
    • Field Detail

      • id

        @Nonnull
        protected final it.tidalwave.util.Id id
      • name

        @Nonnull
        protected final java.lang.String name
      • description

        @Nonnull
        protected final java.lang.String description
    • Constructor Detail

      • InMemoryJobEvent

        protected InMemoryJobEvent​(@Nonnull
                                   JobEvent.Builder builder)
        Creates a new instance from a builder.
        Parameters:
        builder - the builder
    • Method Detail

      • builder

        @Nonnull
        public static JobEvent.Builder builder()
        Creates a new builder.
        Returns:
        the builder
      • getDateTime

        @Nonnull
        public abstract java.time.LocalDateTime getDateTime()
        Returns the datetime of the event.
        Returns:
        the date
      • getDuration

        @Nonnull
        public abstract java.time.Duration getDuration()
        Returns the duration of the event.
        Returns:
        the duration
      • getEarnings

        @Nonnull
        public abstract Money getEarnings()
        Returns the earnings for the event.
        Returns:
        the earnings
      • toBuilder

        @Nonnull
        public abstract JobEvent.Builder toBuilder()
        Returns a builder pre-populated with all the attributes.
        Specified by:
        toBuilder in interface JobEvent
        Returns:
        the builder