Package io.scanbot.sdk.barcode
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.
-
-
Constructor Summary
Constructors Constructor Description BarcodeFilter()
-
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. -
-
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.
-
-
-
-