Interface ITypeConverterRule<SRC,​DST>

    • Method Detail

      • canConvert

        boolean canConvert​(@Nonnull
                           Class<?> aSrcClass,
                           @Nonnull
                           Class<?> aDstClass)
        Check if this converter can handle the conversion from the passed source to the passed destination class. Note: as this method is called for every type conversion for which no exact converters are present, the implementation of this method should be as efficient as possible.
        Parameters:
        aSrcClass - Source class to convert from. Never null.
        aDstClass - Destination class to convert to. Never null.
        Returns:
        true if conversion is possible, false otherwise.