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 aLong
to anInteger
.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description Long2Int()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
convert(java.lang.Long seed)
Converts seed from input type to output type.
-
-
-
Method Detail
-
convert
public java.lang.Integer convert(java.lang.Long seed)
Converts seed from input type to output type.- Specified by:
convert
in interfaceSeedConverter<java.lang.Long,java.lang.Integer>
- Parameters:
seed
- Original seed value.- Returns:
- the converted seed value.
-
-