Class ObjectConverter


  • public final class ObjectConverter
    extends java.lang.Object
    Converts objects to specific types.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T convert​(java.lang.Object obj, java.lang.Class<T> type)
      Converts the object to the given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convert

        public static <T> T convert​(java.lang.Object obj,
                                    java.lang.Class<T> type)
        Converts the object to the given type.
        Type Parameters:
        T - Target type
        Parameters:
        obj - object
        type - type
        Returns:
        the converted object