All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tsingjyujing.geo.element.immutable.TimeElement.scala Maven / Gradle / Ivy

There is a newer version: 2.8.9-2.11
Show newest version
package com.github.tsingjyujing.geo.element.immutable

import com.github.tsingjyujing.geo.basic.operations.IValue
import com.github.tsingjyujing.geo.basic.timeseries.ITick

/**
  * Pack value with time
  *
  * @param time
  * @param value
  * @tparam T value type
  */
final case class TimeElement[+T](time: Double, value: T) extends ITick with IValue[T] {
    override def getTick: Double = time

    override def setTick(tick: Double): Unit = throw new Exception("Unsupported method")

    override def getValue: T = value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy