Class MultyDecodeType
- java.lang.Object
-
- com.aspose.barcode.barcoderecognition.BaseDecodeType
-
- com.aspose.barcode.barcoderecognition.MultyDecodeType
-
- All Implemented Interfaces:
android.os.Parcelable
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_STANDARD);
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BaseDecodeType>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultyDecodeType(android.os.Parcel in)
MultyDecodeType(BaseDecodeType... barcodeTypes)
Initializes a new instance of theMultyDecodeType
class.MultyDecodeType(SingleDecodeType... barcodeTypes)
Initializes a new instance of theMultyDecodeType
class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SingleDecodeType singleType)
Adds one moreSingleDecodeType
to the MultyDecodeType.boolean
containsAll(BaseDecodeType... barcodeTypes)
Check if this contains all types from barcode types.boolean
containsAny(BaseDecodeType... decodeTypes)
Is contain any of typesint
describeContents()
boolean
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specifiedMultyDecodeType
value.int
getGetSingleTypesCount()
Returns a number of single types.java.util.List<SingleDecodeType>
getSingleTypes()
Represents a list of single types.int
hashCode()
Returns the hash code for this instance.java.lang.String
toString()
Overridden method representing MultyDecodeType as a string.static MultyDecodeType
tryParseMultyDecodeType(java.lang.String parsingType)
Converts the string representation of a MultyDecodeType to its instance.void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class com.aspose.barcode.barcoderecognition.BaseDecodeType
tryParseBaseDecodeType, tryParseSingleDecodeType
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BaseDecodeType> CREATOR
-
-
Constructor Detail
-
MultyDecodeType
public MultyDecodeType(BaseDecodeType... barcodeTypes)
Initializes a new instance of the
MultyDecodeType
class.- Parameters:
barcodeTypes
- Array of single decode types
-
MultyDecodeType
public MultyDecodeType(SingleDecodeType... barcodeTypes)
Initializes a new instance of the
MultyDecodeType
class.- Parameters:
barcodeTypes
- Array of multy and single decode types
-
MultyDecodeType
protected MultyDecodeType(android.os.Parcel in)
-
-
Method Detail
-
add
public void add(SingleDecodeType singleType)
Adds one more
SingleDecodeType
to the MultyDecodeType.- Parameters:
singleType
- A Single DecodeType to be added to the list
-
containsAll
public boolean containsAll(BaseDecodeType... barcodeTypes)
Check if this contains all types from barcode types.
- Parameters:
barcodeTypes
- Input single or multy barcode types- Returns:
- True if all types are included into
-
toString
public java.lang.String toString()
Overridden method representing MultyDecodeType as a string.
- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representing MultyDecodeType instance as "singleDecodeType1, singleDecodeType2, ..."
returns when all types are included.
-
tryParseMultyDecodeType
public static MultyDecodeType tryParseMultyDecodeType(java.lang.String parsingType)
Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
- Parameters:
parsingType
- A string in the format as either "AllSupportedTypes" or "EAN8,EAN13,CodaBar" to convert.- Returns:
- An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType ("NONE").
-
containsAny
public boolean containsAny(BaseDecodeType... decodeTypes)
Is contain any of types
- Specified by:
containsAny
in classBaseDecodeType
- Parameters:
decodeTypes
- Decode types- Returns:
- Value is a true if any types are included into
-
getSingleTypes
public java.util.List<SingleDecodeType> getSingleTypes()
Represents a list of single types.
- Returns:
- List of single types
-
getGetSingleTypesCount
public int getGetSingleTypesCount()
Returns a number of single types.
-
equals
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
MultyDecodeType
value.- Overrides:
equals
in classBaseDecodeType
- Parameters:
obj
- AnMultyDecodeType
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.
- Overrides:
hashCode
in classBaseDecodeType
- Returns:
- A 32-bit signed integer hash code.
-
describeContents
public int describeContents()
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
-
-