public final class OneDExtendedParameters extends BaseExtendedParameters
Stores special data of 1D recognized barcode like separate codetext and checksum
This sample shows how to get 1D barcode value and checksumBarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128"); generator.save("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.EAN_13); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeTypeName()); System.out.println("BarCode CodeText: " + result.getCodeText()); System.out.println("BarCode Value: " + result.getExtended().getOneD().getValue()); System.out.println("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum()); }
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
OneDExtendedParameters value. |
java.lang.String |
getCheckSum()
Gets the checksum for 1D barcodes.
|
java.lang.String |
getValue()
Gets the codetext of 1D barcodes without checksum.
|
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
op_Equality(OneDExtendedParameters first,
OneDExtendedParameters second)
Returns a value indicating whether the first
OneDExtendedParameters value is equal to the second. |
static boolean |
op_Inequality(OneDExtendedParameters first,
OneDExtendedParameters second)
Returns a value indicating if the first
OneDExtendedParameters value is different from the second. |
java.lang.String |
toString()
Returns a human-readable string representation of this
OneDExtendedParameters . |
isEmpty
public java.lang.String getValue()
Gets the codetext of 1D barcodes without checksum.
Value: The codetext of 1D barcodes without checksum.public java.lang.String getCheckSum()
Gets the checksum for 1D barcodes.
Value: The checksum for 1D barcode.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters
value.
equals
in class java.lang.Object
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public static boolean op_Equality(OneDExtendedParameters first, OneDExtendedParameters second)
Returns a value indicating whether the first OneDExtendedParameters
value is equal to the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the same value as second; otherwise, <b>false</b>
.public static boolean op_Inequality(OneDExtendedParameters first, OneDExtendedParameters second)
Returns a value indicating if the first OneDExtendedParameters
value is different from the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the different value from second; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns a human-readable string representation of this OneDExtendedParameters
.
toString
in class java.lang.Object
OneDExtendedParameters
.