Class IntArray2Int

java.lang.Object
org.apache.commons.rng.simple.internal.IntArray2Int
All Implemented Interfaces:
SeedConverter<int[],​java.lang.Integer>

public class IntArray2Int
extends java.lang.Object
implements SeedConverter<int[],​java.lang.Integer>
Creates a single value by "xor" of all the values in the input array.
Since:
1.0
  • Constructor Summary

    Constructors 
    Constructor Description
    IntArray2Int()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer convert​(int[] seed)
    Converts seed from input type to output type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • convert

      public java.lang.Integer convert​(int[] seed)
      Converts seed from input type to output type.
      Specified by:
      convert in interface SeedConverter<int[],​java.lang.Integer>
      Parameters:
      seed - Original seed value.
      Returns:
      the converted seed value.