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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.