Java Long to Boolean longToBoolean(long[] values)

Here you can find the source of longToBoolean(long[] values)

Description

long To Boolean

License

Open Source License

Declaration

public static boolean[] longToBoolean(long[] values) 

Method Source Code

//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;
    }
}

Related

  1. longToBoolean(final Long b)
  2. longToBoolean(long l)