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

static public boolean removeBond(Class btClass, BluetoothDevice btDevice) throws Exception {
    Log.d("lxh", " obd bluetooth removeBond");
    Method removeBondMethod = btClass.getMethod("removeBond");
    Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice);
    return returnValue.booleanValue();
}

From source file:Main.java

static public 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 cancelPairingUserInput(Class btClass, BluetoothDevice device)

        throws Exception {
    Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
    // cancelBondProcess()
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
}

From source file:Main.java

@SuppressWarnings({ "unchecked", "rawtypes" })
public static 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

@SuppressWarnings({ "unchecked", "rawtypes" })
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

public static boolean cancelPairingUserInput(BluetoothDevice device) throws Exception {

    Method createBondMethod = device.getClass().getMethod("cancelPairingUserInput");
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();

}

From source file:Main.java

@SuppressWarnings({ "rawtypes", "unchecked" })
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 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

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

From source file:Main.java

@SuppressWarnings("unchecked")
static public boolean cancelBondProcess(Class btClass, BluetoothDevice device)

        throws Exception {
    Method createBondMethod = btClass.getMethod("cancelBondProcess");
    Boolean returnValue = (Boolean) createBondMethod.invoke(device);
    return returnValue.booleanValue();
}