Class Long2Int

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

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

    Constructors 
    Constructor Description
    Long2Int()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer convert​(java.lang.Long 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 java.lang.Integer convert​(java.lang.Long seed)
      Converts seed from input type to output type.
      Specified by:
      convert in interface SeedConverter<java.lang.Long,​java.lang.Integer>
      Parameters:
      seed - Original seed value.
      Returns:
      the converted seed value.