
com.tribbloids.spookystuff.utils.Serializable.scala Maven / Gradle / Ivy
package com.tribbloids.spookystuff.utils
import scala.reflect.ClassTag
/**
* Created by peng on 10/22/14.
*/
object Serializable {
def apply[T: ClassTag](self: T): (T with Serializable) = {
self.asInstanceOf[T with Serializable]
}
def apply[T: ClassTag](self: T, vid: Long): (T with Serializable ) = {
self.asInstanceOf[T @SerialVersionUID(vid) with Serializable]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy