Class Int2Long
- java.lang.Object
-
- org.apache.commons.rng.simple.internal.Int2Long
-
- All Implemented Interfaces:
SeedConverter<java.lang.Integer,java.lang.Long>
public class Int2Long extends java.lang.Object implements SeedConverter<java.lang.Integer,java.lang.Long>
Converts aInteger
to anLong
.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description Int2Long()
Create an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
convert(java.lang.Integer seed)
Converts seed from input type to output type.
-
-
-
Method Detail
-
convert
public java.lang.Long convert(java.lang.Integer seed)
Converts seed from input type to output type.- Specified by:
convert
in interfaceSeedConverter<java.lang.Integer,java.lang.Long>
- Parameters:
seed
- Original seed value.- Returns:
- the converted seed value.
-
-