Class LongArray2Long
java.lang.Object
org.apache.commons.rng.simple.internal.LongArray2Long
- All Implemented Interfaces:
SeedConverter<long[],java.lang.Long>
public class LongArray2Long extends java.lang.Object implements SeedConverter<long[],java.lang.Long>
Creates a single value by "xor" of all the values in the input array.
- Since:
- 1.0
-
Constructor Summary
Constructors Constructor Description LongArray2Long() -
Method Summary
Modifier and Type Method Description java.lang.Longconvert(long[] seed)Converts seed from input type to output type.
-
Constructor Details
-
LongArray2Long
public LongArray2Long()
-
-
Method Details
-
convert
public java.lang.Long convert(long[] seed)Converts seed from input type to output type.- Specified by:
convertin interfaceSeedConverter<long[],java.lang.Long>- Parameters:
seed- Original seed value.- Returns:
- the converted seed value.
-