Example usage for java.lang Boolean booleanValue

List of usage examples for java.lang Boolean booleanValue

Introduction

In this page you can find the example usage for java.lang Boolean booleanValue.

Prototype

@HotSpotIntrinsicCandidate
public boolean booleanValue() 

Source Link

Document

Returns the value of this Boolean object as a boolean primitive.

Usage

From source file:Main.java

private static boolean zzc(Boolean bool) {
    return bool != null && bool.booleanValue();
}

From source file:Main.java

private static String booleanToString(Boolean b) {
    String content = null;/*from  w  w w  .  j  av  a2 s.  c  o m*/
    if (b.booleanValue())
        content = "1";
    else
        content = "0";
    return content;
}

From source file:Main.java

public static boolean cancelBondProcess(Class btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelBondProcess");
    Boolean retVal = (Boolean) createBondMethod.invoke(device);
    return retVal.booleanValue();
}

From source file:Main.java

public static boolean cancelPairingUserInput(Class btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
    // cancelBondProcess()
    Boolean retVal = (Boolean) createBondMethod.invoke(device);
    return retVal.booleanValue();
}

From source file:Main.java

public static boolean createBond(Class btClass, BluetoothDevice btDevice) throws Exception {
    Method createBondMethod = btClass.getMethod("createBond");
    Boolean retVal = (Boolean) createBondMethod.invoke(btDevice);
    return retVal.booleanValue();
}

From source file:Main.java

public static boolean removeBond(Class<?> btClass, BluetoothDevice btDevice) throws Exception {
    Method removeBondMethod = btClass.getMethod("removeBond");
    Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice);
    return returnValue.booleanValue();
}

From source file:Main.java

static public boolean cancelBondProcess(Class<?> btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelBondProcess");
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
}

From source file:Main.java

static public boolean createBond(Class btClass, BluetoothDevice btDevice) throws Exception {
    Method createBondMethod = btClass.getMethod("createBond");
    Boolean returnValue = (Boolean) createBondMethod.invoke(btDevice);
    return returnValue.booleanValue();
}

From source file:Main.java

static public boolean cancelPairingUserInput(Class<?> btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
    //    cancelBondProcess(btClass, device);
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
}

From source file:Main.java

static public boolean cancelPairingUserInput(Class<?> btClass, BluetoothDevice device) throws Exception {
    Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
    //        cancelBondProcess(btClass, device);
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
}