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

sigma.data.CAnyValue.scala Maven / Gradle / Ivy

The newest version!
package sigma.data

import sigma.AnyValue
import sigma.data.OverloadHack.Overloaded1

import scala.annotation.unused

/** Default implementation of AnyValue interface. */
case class CAnyValue[A](value: A, tVal: RType[Any]) extends AnyValue {
  def tA: RType[A] = tVal.asInstanceOf[RType[A]]

  override def toString = s"TestValue($value)"
}

object CAnyValue {
  def apply[A](value: A)(implicit t: RType[A], @unused o: Overloaded1): CAnyValue[A] =
    new CAnyValue(value, t.asInstanceOf[RType[Any]])
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy