Skip to content

Instantly share code, notes, and snippets.

View JogahCR's full-sized avatar

Gabriel Herrera R. JogahCR

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jogahcr on github.
  • I am jogahcr (https://keybase.io/jogahcr) on keybase.
  • I have a public key ASC3TbN6lQRusH8sY4LZn-OLCfcKJ3BlVV_HBtE5fe9AqQo

To claim this, I am signing this object:

@JogahCR
JogahCR / sample.java
Created September 20, 2017 19:31
Extensible scan sample
private void onStartScanClicked(@NonNull View view) {
final Func1<ScanResult, Pair<ScanResult, HBData>> mapToData = scanResult ->
new Pair<>(scanResult,
new HBData(scanResult.getScanRecord()));
final Func1<Pair<ScanResult, HBData>, Boolean> filter = result -> {
switch (mFiler) {
case GROW:
return result.second.isScale();