ClassMagnet

pl.iterators.stir.util.ClassMagnet
See theClassMagnet companion object
trait ClassMagnet[T]

A magnet that wraps a ClassTag

Attributes

Companion
object
Source
ClassMagnet.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def classTag: ClassTag[T]

Attributes

Source
ClassMagnet.scala
def extractPF: PartialFunction[Any, T]

Returns a partial function that checks if the input value is of runtime type T and returns the value if it does. Doesn't take erased information into account.

Returns a partial function that checks if the input value is of runtime type T and returns the value if it does. Doesn't take erased information into account.

Attributes

Source
ClassMagnet.scala
def runtimeClass: Class[T]

Attributes

Source
ClassMagnet.scala