Class BarcodeFilter

  • All Implemented Interfaces:
    io.scanbot.sdk.barcode.IBarcodeFilter , java.io.Serializable

    
    public class BarcodeFilter
     implements IBarcodeFilter
                        

    Basic implementation of IBarcodeFilter that accepts all barcodes except for duplicates.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BarcodeFilter()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean acceptsBarcode(BarcodeItem barcode) Accepts or rejects a scanned barcode.
      Boolean shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes) Accepts or rejects a scanned barcode in the context of already accepted barcodes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BarcodeFilter

        BarcodeFilter()
    • Method Detail

      • acceptsBarcode

         Boolean acceptsBarcode(BarcodeItem barcode)

        Accepts or rejects a scanned barcode.

        Parameters:
        barcode - The barcode to be accepted or rejected by the filter.
      • shouldAdd

         Boolean shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes)

        Accepts or rejects a scanned barcode in the context of already accepted barcodes.

        Parameters:
        barcode - The barcode to be accepted or rejected by the filter.
        addedBarcodes - List of current already accepted barcodes.