@Override
	public void onInvalidDataReceived(@NonNull final BluetoothDevice device,
									  @NonNull final Data data) {
		this.valid = false;
	}
A response type for read requests with basic validation check.
When read was requested as a synchronous call the {@link #isValid()} can be used to
check if data were parsed successfully. Parsing method must call super methods on
both {@link #onDataReceived(BluetoothDevice, Data)} and
{@link #onInvalidDataReceived(BluetoothDevice, Data)} in order to make getters working properly.
<p>
Check out profile data callbacks in the Android BLE Common Library for example of usage.
ble/src/main/java/no/nordicsemi/android/ble/callback/profile/ProfileReadResponse.java