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