Scalax
|
|
scalax/reflect/typeOf.scala
]
object
typeOf
extends
AnyReftypeOf
instance either directly from a Scala type or from an object value.
For example, try the following:
- typeOf[Int]
- typeOf(1)
- typeOf[Int] == typeOf(1)
- typeOf[List[List[Int]]].toString
Method Summary | |
def
|
apply
[T]()(implicit m : scala.reflect.Manifest[T]) : typeOf[T]
|
def
|
apply
[T](t : T)(implicit m : scala.reflect.Manifest[T]) : typeOf[T]
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
apply[T](t : T)(implicit
m : scala.reflect.Manifest[T]) : typeOf[T]
def
apply[T]()(implicit
m : scala.reflect.Manifest[T]) : typeOf[T]
Scalax
|
|