Class Long2IntArray

    • Constructor Detail

      • Long2IntArray

        public Long2IntArray​(int size)
        Parameters:
        size - Size of the output array.
    • Method Detail

      • convert

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

        public int[] convert​(Long seed,
                             int outputSize)
        Converts seed from input type to output type. The output type is expected to be an array.
        Specified by:
        convert in interface Seed2ArrayConverter<Long,​int[]>
        Parameters:
        seed - Original seed value.
        outputSize - Output size.
        Returns:
        the converted seed value.
        Since:
        1.3