Interface ClassMagnet<T>


  • public interface ClassMagnet<T>
    A magnet that wraps a ClassTag
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      scala.reflect.ClassTag<T> classTag()  
      scala.PartialFunction<java.lang.Object,​T> extractPF()
      Returns a partial function that checks if the input value is of runtime type T and returns the value if it does.
      java.lang.Class<T> runtimeClass()  
    • Method Detail

      • classTag

        scala.reflect.ClassTag<T> classTag()
      • runtimeClass

        java.lang.Class<T> runtimeClass()
      • extractPF

        scala.PartialFunction<java.lang.Object,​T> extractPF()
        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:
        (undocumented)