Java Boolean From toBoolean(byte data[], int offset, boolean value)

Here you can find the source of toBoolean(byte data[], int offset, boolean value)

Description

to Boolean

License

Open Source License

Declaration

@Deprecated
public static void toBoolean(byte data[], int offset, boolean value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /** deprecated - used only in DatabaseLookupMessage */
    public static final byte BOOLEAN_TRUE = 0x1;
    /** deprecated - used only in DatabaseLookupMessage */
    public static final byte BOOLEAN_FALSE = 0x0;
    /** @deprecated unused */
    @Deprecated//from w w w  . j  a v  a  2 s .c  o  m
    public static final byte BOOLEAN_UNKNOWN = 0x2;

    /** @deprecated unused */
    @Deprecated
    public static void toBoolean(byte data[], int offset, boolean value) {
        data[offset] = (value ? BOOLEAN_TRUE : BOOLEAN_FALSE);
    }

    /** @deprecated unused */
    @Deprecated
    public static void toBoolean(byte data[], int offset, Boolean value) {
        if (value == null)
            data[offset] = BOOLEAN_UNKNOWN;
        else
            data[offset] = (value.booleanValue() ? BOOLEAN_TRUE : BOOLEAN_FALSE);
    }
}

Related

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