Class SeedConverterComposer<T,​S,​R>

  • Type Parameters:
    T - Input seed type.
    S - Transitional seed type.
    R - Output seed type.
    All Implemented Interfaces:
    SeedConverter<T,​R>

    public class SeedConverterComposer<T,​S,​R>
    extends java.lang.Object
    implements SeedConverter<T,​R>
    Composes two converters.
    Since:
    1.0
    • Constructor Detail

      • SeedConverterComposer

        public SeedConverterComposer​(SeedConverter<T,​S> first,
                                     SeedConverter<S,​R> second)
        Create an instance.
        Parameters:
        first - First conversion.
        second - second conversion.
    • Method Detail

      • convert

        public R convert​(T seed)
        Converts seed from input type to output type.
        Specified by:
        convert in interface SeedConverter<T,​S>
        Parameters:
        seed - Original seed value.
        Returns:
        the converted seed value.