Class Long2Int

java.lang.Object
org.apache.commons.rng.simple.internal.Long2Int
All Implemented Interfaces:
SeedConverter<Long,Integer>

public class Long2Int extends Object implements SeedConverter<Long,Integer>
Converts a Long to an Integer.
Since:
1.0
  • Constructor Details

    • Long2Int

      public Long2Int()
      Create an instance.
  • Method Details

    • convert

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