Here you can find the source of longToBoolean(long[] values)
public static boolean[] longToBoolean(long[] values)
//package com.java2s; public class Main { public static boolean[] longToBoolean(long[] values) { if (values == null) { return null; }/*ww w.ja va 2 s .co m*/ boolean[] results = new boolean[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (values[i] != 0); } return results; } }