Class NoOpConverter<SEED>

java.lang.Object
org.apache.commons.rng.simple.internal.NoOpConverter<SEED>
Type Parameters:
SEED - Seed type.
All Implemented Interfaces:
SeedConverter<SEED,​SEED>

public class NoOpConverter<SEED>
extends java.lang.Object
implements SeedConverter<SEED,​SEED>
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()  
  • Method Summary

    Modifier and Type Method Description
    SEED convert​(SEED 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 Details

  • Method Details

    • convert

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