Class JavaClassPojoCaster<T>

    • Constructor Detail

      • JavaClassPojoCaster

        public JavaClassPojoCaster​(Class<T> clazz)
    • Method Detail

      • cast

        public T cast​(Object object)
        Specified by:
        cast in interface PojoCaster<T>
        Parameters:
        object - the object to cast
        Returns:
        the cast object
      • castOrNull

        public T castOrNull​(Object object)
        Specified by:
        castOrNull in interface PojoCaster<T>
        Parameters:
        object - the object to cast
        Returns:
        the cast object, or null if the object could not be cast