Class NoOpConverter<T>

  • Type Parameters:
    T - Seed type.
    All Implemented Interfaces:
    SeedConverter<T,​T>

    public class NoOpConverter<T>
    extends java.lang.Object
    implements SeedConverter<T,​T>
    Dummy converter that simply passes on its input. It can be useful to avoid "unchecked" compiler warnings.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      NoOpConverter()
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T convert​(T seed)
      Converts seed from input type to output type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoOpConverter

        public NoOpConverter()
        Create an instance.
    • Method Detail

      • convert

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