Java Long to Int longToInts(long n)

Here you can find the source of longToInts(long n)

Description

long To Ints

License

Open Source License

Declaration

public static int[] longToInts(long n) 

Method Source Code

//package com.java2s;

public class Main {
    public static int[] longToInts(long n) {
        return longToInts(n, new int[2], 0);
    }//from  w  w  w .j a  v a  2  s .co  m

    public static int[] longToInts(long n, int[] arr, int off) {
        for (int i = 0; i < arr.length; i++) {
            arr[i + off] = (int) (n >> 32 * i & 0xFFFFFFFF);
        }

        return arr;
    }
}

Related

  1. longToIntBytes(long a)
  2. longToIntClip(final long value)
  3. longToInteger(final long value)
  4. longToInteger(long l)
  5. longToIntHashCode(long value)