in app/drivers/objectmatrix/MxsMetadata.scala [43:56]
def withValue[T](key:String, value:T):MxsMetadata = {
value match {
case boolValue: Boolean => this.copy(boolValues = this.boolValues ++ Map(key -> boolValue))
case stringValue: String => this.copy(stringValues = this.stringValues ++ Map(key -> stringValue))
case intValue: Int => this.copy(intValues = this.intValues ++ Map(key -> intValue))
case longValue: Long => this.copy(longValues = this.longValues ++ Map(key -> longValue))
case timeValue: ZonedDateTime => this.copy(longValues = this.longValues ++ Map(key -> timeValue.toInstant.toEpochMilli))
case timeValue: LocalDateTime => this.copy(longValues = this.longValues ++ Map(key -> timeValue.toInstant(ZoneOffset.UTC).toEpochMilli))
case instant: Instant => this.copy(longValues = this.longValues ++ Map(key -> instant.toEpochMilli))
case _ =>
logger.warn(s"Could not set key $key to value $value (type ${value.getClass.toGenericString}), type not recognised")
this
}
}