case class TimelineEvent[T <: TimelineEventMetadata](eventType: EventType, eventDate: LocalDate, metadata: T) extends Product with Serializable
A class to represent an event on the timeline of a cow. Consists of a date, an event type, a map with metadata and (eventually also) a list with data quality issues. The metadata is different for each event type and should be matched automatically to ensure the correct metadata is assigned to each event.
- eventType
Mandatory type of the event.
- eventDate
Mandatory date of the event.
- metadata
Event metadata, unique for each event type. By making TimelineEvent generic, the metadata type is strongly linked to the eventType. This ensures that if you specify an eventType, you can only provide the metadata type that corresponds to it. If an event does not have metadata, use case object noMetaData.
- Source
- TimelineEvent.scala
- Alphabetic
- By Inheritance
- TimelineEvent
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TimelineEvent(eventType: EventType, eventDate: LocalDate, metadata: T)
- eventType
Mandatory type of the event.
- eventDate
Mandatory date of the event.
- metadata
Event metadata, unique for each event type. By making TimelineEvent generic, the metadata type is strongly linked to the eventType. This ensures that if you specify an eventType, you can only provide the metadata type that corresponds to it. If an event does not have metadata, use case object noMetaData.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val eventDate: LocalDate
- val eventType: EventType
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val metadata: T
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)