Interface Converter<S,​T>


  • public interface Converter<S,​T>
    Converter interface where implementation of this interface can convert one data type into another.
    Since:
    3.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T convert​(S source)
      Takes a potentially null source value and converts it into the potentially null target value
    • Method Detail

      • convert

        @Nullable
        T convert​(@Nullable
                  S source)
        Takes a potentially null source value and converts it into the potentially null target value
        Parameters:
        source - the source value
        Returns:
        The target value