Interface Converter

All Known Implementing Classes:
GenericConverter

public interface Converter
Temporary interface. To be replaced with Mutator once that's part of the common module.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    convertTo(Class<T> type, Object o)
    Converts the specified object to the specified type.
  • Method Details

    • convertTo

      <T> T convertTo(Class<T> type, Object o)
      Converts the specified object to the specified type.
      Type Parameters:
      T - The type to convert to.
      Parameters:
      type - The type to convert to.
      o - The object to convert.
      Returns:
      The converted object, or null if the conversion is not possible.