private boolean isCCCD(final BluetoothGattDescriptor descriptor){
  if (descriptor == null)   return false;
  return CLIENT_CHARACTERISTIC_CONFIG_DESCRIPTOR_UUID.equals(descriptor.getUuid());
}

private boolean isCCCD ( final BluetoothGattDescriptor descriptor ) { if ( descriptor == null ) return false ; return CLIENT_CHARACTERISTIC_CONFIG_DESCRIPTOR_UUID . equals ( descriptor . getUuid ( ) ) ; }
returns true if this descriptor is a client characteristic configuration descriptor ( cccd ) .
