Java Boolean From toBoolean(byte[] b)

Here you can find the source of toBoolean(byte[] b)

Description

to Boolean

License

Apache License

Declaration

public static boolean toBoolean(byte[] b) 

Method Source Code

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

public class Main {
    public static boolean toBoolean(byte[] b) {
        return toBoolean(b, 0);
    }//  w  ww . j  a  v  a2 s. c o  m

    public static boolean toBoolean(byte[] b, int off) {
        return b[off] != 0;
    }
}

Related

  1. toBoolean(boolean bool)
  2. toBoolean(Boolean bool, boolean defaultValue)
  3. toBoolean(byte b)
  4. toBoolean(byte data[], int offset, boolean value)
  5. toBoolean(byte t_logical)
  6. toBoolean(byte[] byteArray)
  7. toBoolean(byte[] bytes, int offset)
  8. toBoolean(byte[] data, int offset)
  9. toBoolean(byte[] value)