Interface PojoCaster<T>

All Known Implementing Classes:
JavaClassPojoCaster

public interface PojoCaster<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    cast(Object object)
     
     
  • Method Details

    • cast

      T cast(Object object)
      Parameters:
      object - the object to cast
      Returns:
      the cast object
      Throws:
      RuntimeException - If the object could not be cast
    • castOrNull

      T castOrNull(Object object)
      Parameters:
      object - the object to cast
      Returns:
      the cast object, or null if the object could not be cast