Class CastFunction<E>

  • All Implemented Interfaces:
    com.google.common.base.Function<java.lang.Object,​E>, java.util.function.Function<java.lang.Object,​E>
    Direct Known Subclasses:
    AttributeCastFunction

    public abstract class CastFunction<E>
    extends java.lang.Object
    implements com.google.common.base.Function<java.lang.Object,​E>
    • Constructor Summary

      Constructors 
      Constructor Description
      CastFunction​(java.lang.Class<? extends E> clazz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E apply​(java.lang.Object object)  
      PythonException createPythonException​(java.lang.String message, java.lang.ClassCastException cause)  
      java.lang.Class<? extends E> getClazz()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • CastFunction

        public CastFunction​(java.lang.Class<? extends E> clazz)
    • Method Detail

      • apply

        public E apply​(java.lang.Object object)
        Specified by:
        apply in interface com.google.common.base.Function<java.lang.Object,​E>
        Specified by:
        apply in interface java.util.function.Function<java.lang.Object,​E>
      • createPythonException

        public PythonException createPythonException​(java.lang.String message,
                                                     java.lang.ClassCastException cause)
      • getClazz

        public java.lang.Class<? extends E> getClazz()