MultyDecodeType
Inheritance: java.lang.Object, com.aspose.barcode.barcoderecognition.BaseDecodeType
public class MultyDecodeType extends BaseDecodeType
Composite decode type.
CreateThis sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types. MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DATA_MATRIX); MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39);
Constructors
| Constructor | Description |
|---|---|
| MultyDecodeType(BaseDecodeType[] barcodeTypes) | Initializes a new instance of the MultyDecodeType class. |
| MultyDecodeType(SingleDecodeType[] barcodeTypes) | Initializes a new instance of the MultyDecodeType class. |
Fields
| Field | Description |
|---|---|
| CREATOR |
Methods
| Method | Description |
|---|---|
| add(SingleDecodeType singleType) | Adds one more SingleDecodeType to the MultyDecodeType. |
| containsAll(BaseDecodeType[] barcodeTypes) | Check if this contains all types from barcode types. |
| containsAny(BaseDecodeType[] decodeTypes) | Is contain any of types |
| describeContents() | |
| equals(Object obj) | Returns a value indicating whether this instance is equal to a specified MultyDecodeType value. |
| exclude(SingleDecodeType singleType) | Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance. |
| getClass() | |
| getGetSingleTypesCount() | Returns a number of single types. |
| getSingleTypes() | Represents a list of single types. |
| hashCode() | Returns the hash code for this instance. |
| notify() | |
| notifyAll() | |
| toString() | Overridden method representing MultyDecodeType as a string. |
| tryParseBaseDecodeType(String parsingType) | Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. |
| tryParseMultyDecodeType(String parsingType) | Converts the string representation of a MultyDecodeType to its instance. |
| tryParseSingleDecodeType(String parsingType) | Converts the string representation of a SingleDecodeType to its instance. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| writeToParcel(Parcel dest, int flags) |
MultyDecodeType(BaseDecodeType[] barcodeTypes)
public MultyDecodeType(BaseDecodeType[] barcodeTypes)
Initializes a new instance of the MultyDecodeType class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| barcodeTypes | BaseDecodeType[] | Array of single decode types |
MultyDecodeType(SingleDecodeType[] barcodeTypes)
public MultyDecodeType(SingleDecodeType[] barcodeTypes)
Initializes a new instance of the MultyDecodeType class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| barcodeTypes | SingleDecodeType[] | Array of multy and single decode types |
CREATOR
public static final Parcelable.Creator<BaseDecodeType> CREATOR
add(SingleDecodeType singleType)
public void add(SingleDecodeType singleType)
Adds one more SingleDecodeType to the MultyDecodeType.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| singleType | SingleDecodeType | A Single DecodeType to be added to the list |
containsAll(BaseDecodeType[] barcodeTypes)
public boolean containsAll(BaseDecodeType[] barcodeTypes)
Check if this contains all types from barcode types.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| barcodeTypes | BaseDecodeType[] | Input single or multy barcode types |
Returns: boolean - True if all types are included into
containsAny(BaseDecodeType[] decodeTypes)
public boolean containsAny(BaseDecodeType[] decodeTypes)
Is contain any of types
Parameters:
| Parameter | Type | Description |
|---|---|---|
| decodeTypes | BaseDecodeType[] | Decode types |
Returns: boolean - Value is a true if any types are included into
describeContents()
public int describeContents()
Returns: int
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | An MultyDecodeType value to compare to this instance. |
Returns: boolean - True if obj has the same value as this instance; otherwise, false.
exclude(SingleDecodeType singleType)
public MultyDecodeType exclude(SingleDecodeType singleType)
Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| singleType | SingleDecodeType | A Single DecodeType to be excluded. |
Returns: MultyDecodeType - New MultyDecodeType instance with excluded SingleDecodeType.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getGetSingleTypesCount()
public int getGetSingleTypesCount()
Returns a number of single types.
Returns: int
getSingleTypes()
public List<SingleDecodeType> getSingleTypes()
Represents a list of single types.
Returns: java.util.List<com.aspose.barcode.barcoderecognition.SingleDecodeType> - List of single types
hashCode()
public int hashCode()
Returns the hash code for this instance.
Returns: int - A 32-bit signed integer hash code.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Overridden method representing MultyDecodeType as a string.
Returns: java.lang.String - A string representing MultyDecodeType instance as “singleDecodeType1, singleDecodeType2, …”
returns when all types are included.
tryParseBaseDecodeType(String parsingType)
public static BaseDecodeType tryParseBaseDecodeType(String parsingType)
Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. A return value indicates whether the conversion succeeded or failed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parsingType | java.lang.String | A string containing a MultyDecodeType representation to convert. |
Returns: BaseDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType (“None”).
tryParseMultyDecodeType(String parsingType)
public static MultyDecodeType tryParseMultyDecodeType(String parsingType)
Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parsingType | java.lang.String | A string in the format as either “AllSupportedTypes” or “EAN8,EAN13,CodaBar” to convert. |
Returns: MultyDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType (“NONE”).
tryParseSingleDecodeType(String parsingType)
public static SingleDecodeType tryParseSingleDecodeType(String parsingType)
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parsingType | java.lang.String | A string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert. |
Returns: SingleDecodeType - An actual SingleDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or SingleDecodeType (-1, “None”).
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |
writeToParcel(Parcel dest, int flags)
public void writeToParcel(Parcel dest, int flags)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dest | android.os.Parcel | |
| flags | int |