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

edu.stanford.dawn.virtualized.RefinedManifest.scala Maven / Gradle / Ivy

The newest version!
package virtualized

trait RefinedManifest[T] extends Manifest[T] {
  override def canEqual(other: Any) = other match {
    case _: RefinedManifest[_] => true
    case _                     => false
  }

  /** Tests whether the type represented by this manifest is equal to
    * the type represented by `that` manifest, subject to the limitations
    * described in the header.
    */
  override def equals(that: Any): Boolean = that match {
    case m: RefinedManifest[_] => (m canEqual this) && (this.runtimeClass == m.runtimeClass) && (this.fields == m.fields)
    case _                     => false
  }
  override def hashCode = this.runtimeClass.##

  def fields: List[(String, Manifest[_])]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy