Package com.microblink.blinkid.entities.recognizers.blinkid.idbarcode

# Class BarcodeElements

java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.idbarcode.BarcodeElements

public final class BarcodeElements extends Object
Contains barcode elements scanned from the document.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BarcodeElements(long nativeContext, Object keep)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getValue(BarcodeElementKey key)`
  Returns value for the given `BarcodeElementKey`, or empty string if it does not exist.
  `boolean`
  `isEmpty()`
  Flag which indicates whether this barcode elements container is empty or not.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BarcodeElements

    public BarcodeElements(long nativeContext, @Nullable Object keep)
    Parameters:
      `nativeContext` - Native barcode elements.
      `keep` - Owner of the native barcode elements.

- ## Method Details

  - ### isEmpty

    public boolean isEmpty()
    Flag which indicates whether this barcode elements container is empty or not.

  - ### getValue

    @NonNull public String getValue(BarcodeElementKey key)
    Returns value for the given `BarcodeElementKey`, or empty string if it does not exist.
    Parameters:
      `key` - barcode filed key.
    Returns:
      value for the given `BarcodeElementKey`, or empty string if it does not exist