Java Boolean From toBooleanArray(Object[] vs)

Here you can find the source of toBooleanArray(Object[] vs)

Description

to Boolean Array

License

Apache License

Declaration

public static boolean[] toBooleanArray(Object[] vs) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean[] toBooleanArray(Object[] vs) {
        boolean[] nvs = new boolean[vs.length];
        for (int i = 0; i < vs.length; i++) {
            nvs[i] = (boolean) vs[i];
        }/*from ww w.  j a  v a2 s  .c o m*/
        return nvs;
    }
}

Related

  1. toBooleanArray(byte[] byteArray)
  2. toBooleanArray(byte[] data)
  3. toBooleanArray(final E[] array)
  4. toBooleanArray(final Object[] array)
  5. toBooleanArray(int[] intArray, int n)
  6. toBooleanDefaultIfNull(Boolean bool, boolean valueIfNull)
  7. toBooleanDefaultIfNull(Boolean bool, boolean valueIfNull)
  8. toBooleanObject(final int val)
  9. toBooleanObject(final String str)