Package io.scanbot.sdk.barcode
Class BarcodeRegexFilter
-
- All Implemented Interfaces:
-
io.scanbot.sdk.barcode.IBarcodeFilter
,java.io.Serializable
public final class BarcodeRegexFilter extends BarcodeFilter
Subclass of BarcodeFilter that only accepts barcodes matching regex string.
-
-
Constructor Summary
Constructors Constructor Description BarcodeRegexFilter(String regex)
-
Method Summary
Modifier and Type Method Description Boolean
acceptsBarcode(BarcodeItem barcode)
Accepts or rejects a scanned barcode. -
-
Constructor Detail
-
BarcodeRegexFilter
BarcodeRegexFilter(String regex)
-
-
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.
-
-
-
-