Class ExceptionDataConverter<T>

  • Type Parameters:
    T - the target type

    public abstract class ExceptionDataConverter<T>
    extends DataConverter<T>
    Simplify the DataConverter class. Implement the accept method. The accept method returns true if there is no exception in converting the String argument, false otherwise.
    • Constructor Detail

      • ExceptionDataConverter

        public ExceptionDataConverter()
    • Method Detail

      • accept

        protected boolean accept​(String arg)
        Description copied from class: DataConverter
        Indicate whether this String argument is this target type or not
        Specified by:
        accept in class DataConverter<T>
        Parameters:
        arg - the target argument in String
        Returns:
        true if this String argument can convert to this target type, false otherwise