Class Converters


  • @PublicApi
    public final class Converters
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <S,​T>
      T
      convert​(S source, java.lang.Class<T> toType)  
      static <S,​T>
      T
      convertOrDefault​(S source, java.lang.Class<T> toType, T defValue)  
      static <S,​T>
      T
      convertOrNull​(S source, java.lang.Class<T> toType)  
      • Methods inherited from class java.lang.Object

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

      • convert

        public static <S,​T> T convert​(S source,
                                            java.lang.Class<T> toType)
      • convertOrNull

        public static <S,​T> T convertOrNull​(S source,
                                                  java.lang.Class<T> toType)
      • convertOrDefault

        public static <S,​T> T convertOrDefault​(S source,
                                                     java.lang.Class<T> toType,
                                                     T defValue)