@SuppressWarnings("CheckResult") @Test(expected = IllegalArgumentException.class) public void testBuilderException() { new OperationBuilder(RuntimeEnvironment.application).build(null); }
@CheckResult public Operation build(BluetoothDevice device) { if (device == null) { throw new IllegalArgumentException("Device cannot be null"); } return new OperationImpl(context, device, commands, retryCount, masterObserver); }
OperationBuilder { @CheckResult public Operation build(BluetoothDevice device) { if (device == null) { throw new IllegalArgumentException("Device cannot be null"); } return new OperationImpl(context, device, commands, retryCount, masterObserver); } }
OperationBuilder { @CheckResult public Operation build(BluetoothDevice device) { if (device == null) { throw new IllegalArgumentException("Device cannot be null"); } return new OperationImpl(context, device, commands, retryCount, masterObserver); } @RestrictTo(RestrictTo.Scope.LIBRARY)  OperationBuilder(Context context); }
OperationBuilder { @CheckResult public Operation build(BluetoothDevice device) { if (device == null) { throw new IllegalArgumentException("Device cannot be null"); } return new OperationImpl(context, device, commands, retryCount, masterObserver); } @RestrictTo(RestrictTo.Scope.LIBRARY)  OperationBuilder(Context context); OperationBuilder read(UUID serviceUUID, UUID characteristicsUUID); OperationBuilder read(UUID serviceUUID, UUID characteristicsUUID, CommandObserver observer); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, InputSource source); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, Callable<ByteBuffer> callable); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, InputSource source, CommandObserver observer); OperationBuilder writeNoResponse(UUID serviceUUID, UUID characteristicsUUID, InputSource source); OperationBuilder writeNoResponse(UUID serviceUUID, UUID characteristicsUUID, InputSource source, CommandObserver observer); OperationBuilder executeCommand(Command cmd); OperationBuilder onFinished(OperationObserver operationObserver); OperationBuilder retryCount(int count); @CheckResult Operation build(BluetoothDevice device); }
OperationBuilder { @CheckResult public Operation build(BluetoothDevice device) { if (device == null) { throw new IllegalArgumentException("Device cannot be null"); } return new OperationImpl(context, device, commands, retryCount, masterObserver); } @RestrictTo(RestrictTo.Scope.LIBRARY)  OperationBuilder(Context context); OperationBuilder read(UUID serviceUUID, UUID characteristicsUUID); OperationBuilder read(UUID serviceUUID, UUID characteristicsUUID, CommandObserver observer); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, InputSource source); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, Callable<ByteBuffer> callable); OperationBuilder write(UUID serviceUUID, UUID characteristicsUUID, InputSource source, CommandObserver observer); OperationBuilder writeNoResponse(UUID serviceUUID, UUID characteristicsUUID, InputSource source); OperationBuilder writeNoResponse(UUID serviceUUID, UUID characteristicsUUID, InputSource source, CommandObserver observer); OperationBuilder executeCommand(Command cmd); OperationBuilder onFinished(OperationObserver operationObserver); OperationBuilder retryCount(int count); @CheckResult Operation build(BluetoothDevice device);  }