Class LongArray2IntArray
java.lang.Object
org.apache.commons.rng.simple.internal.LongArray2IntArray
- All Implemented Interfaces:
SeedConverter<long[],
int[]>
Creates an
int[]
from a long[]
.
Note: From version 1.5 this conversion uses the long bytes in little-endian order.
The output int[]
can be converted back using IntArray2LongArray
.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
convert
(long[] seed) Converts seed from input type to output type.
-
Constructor Details
-
LongArray2IntArray
public LongArray2IntArray()Create an instance.
-
-
Method Details
-
convert
public int[] convert(long[] seed) Converts seed from input type to output type.- Specified by:
convert
in interfaceSeedConverter<long[],
int[]> - Parameters:
seed
- Original seed value.- Returns:
- the converted seed value.
-