private boolean isBatteryLevelCharacteristic(final BluetoothGattCharacteristic characteristic){
  if (characteristic == null)   return false;
  return BATTERY_LEVEL_CHARACTERISTIC.equals(characteristic.getUuid());
}

private boolean isBatteryLevelCharacteristic ( final BluetoothGattCharacteristic characteristic ) { if ( characteristic == null ) return false ; return BATTERY_LEVEL_CHARACTERISTIC . equals ( characteristic . getUuid ( ) ) ; }
returns true if the characteristic is the battery level characteristic .
