Class SingleDecodeType
Single decode type. See decode type to get instance.
This sample shows how to get instance of single decode type.SingleDecodeType singleType = DecodeType.QR
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAny(BaseDecodeType... types) Returns a value indicating whether this instance is included into the list specified.booleanequals(com.aspose.barcode.barcoderecognition.MultiDecodeType other) Returns a value indicating whether this instance is equal to a specifiedBaseDecodeTypevalue.booleanequals(SingleDecodeType other) Returns a value indicating whether this instance is equal to a specifiedBaseDecodeTypevalue.booleanReturns a value indicating whether this instance is equal to a specifiedSingleDecodeTypevalue.Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".static StringgetString(SingleDecodeType instance) Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".shortGets an index of decode typeGets a name of decode typeinthashCode()Returns the hash code for this instance.static SingleDecodeTypeparseSingleDecodeType(String stringDecodeType) Converts the string representation of the name of a SingleDecodeType to its instance.toString()Overridden method representing SingleDecodeType as the Name string.Methods inherited from class com.aspose.barcode.barcoderecognition.BaseDecodeType
tryParseBaseDecodeType, tryParseMultiDecodeType, tryParseSingleDecodeType
-
Method Details
-
getTypeIndex
public short getTypeIndex()Gets an index of decode type
- Returns:
- The index of decode type
-
getTypeName
Gets a name of decode type
- Returns:
- The name of decode type
-
toString
Overridden method representing SingleDecodeType as the Name string.
-
getString
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".
- Returns:
- A string representing the complete value of the single decode type
-
getString
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".
- Parameters:
instance- The SingleDecodeType instance to convert- Returns:
- A string representing the complete value of the given single decode type
-
containsAny
Returns a value indicating whether this instance is included into the list specified.
- Specified by:
containsAnyin classBaseDecodeType- Parameters:
types- Array of single and multi decode types- Returns:
- Value is a true if any types are included into
-
equals
Description copied from class:BaseDecodeTypeReturns a value indicating whether this instance is equal to a specified
BaseDecodeTypevalue.- Overrides:
equalsin classBaseDecodeType- Parameters:
other- An java.lang.Object value to compare to this instance.- Returns:
- True if obj has the same value as this instance; otherwise, false.
-
equals
public boolean equals(com.aspose.barcode.barcoderecognition.MultiDecodeType other) Description copied from class:BaseDecodeTypeReturns a value indicating whether this instance is equal to a specified
BaseDecodeTypevalue.- Overrides:
equalsin classBaseDecodeType- Parameters:
other- An java.lang.Object value to compare to this instance.- Returns:
- True if obj has the same value as this instance; otherwise, false.
-
equals
Returns a value indicating whether this instance is equal to a specified
SingleDecodeTypevalue.- Overrides:
equalsin classBaseDecodeType- Parameters:
obj- An System.Object value to compare to this instance.- Returns:
- True if obj has the same value as this instance; otherwise, false.
-
hashCode
public int hashCode()Returns the hash code for this instance.
-
parseSingleDecodeType
Converts the string representation of the name of a SingleDecodeType to its instance.
- Parameters:
stringDecodeType- A string containing the name of a SingleDecodeType to convert.- Returns:
- the instance of , if conversion was successful; otherwise, it returns {@link <b></b>}.
- See Also:
-