Class AbstractConverter

    • Constructor Detail

      • AbstractConverter

        public AbstractConverter()
    • Method Detail

      • concatenate

        public Converter concatenate​(Converter nextConverter)
        Return a converter which is equivalent to applying the `nextConverter` on the result of a conversion with this converter. If `nextConverter` is null or the identity conversion, this converter is returned without instantiating a new converter. Otherwise, a new converter is instantiated while this converter is not altered. Usually, this method should not be overridden. Override the abstract method `concatenateNonIdentityConverter` instead.
        Specified by:
        concatenate in interface Converter
        Returns:
        a converter
      • concatenateNonIdentityConverter

        protected abstract Converter concatenateNonIdentityConverter​(Converter nextConverter)
        Return a new Converter by concatenating another converter to this converter. The new converter is equivalent to applying the `nextConverter` on the result of a conversion with this converter.
        Parameters:
        nextConverter -
        Returns:
        a new converter