MultiDecodeType

Inheritance: java.lang.Object, com.aspose.barcode.barcoderecognition.BaseDecodeType

public class MultiDecodeType extends BaseDecodeType

Composite decode type.

This sample shows how to create compound MultiDecode types that combine SingleDecodeType and MultiDecode types.

Constructors

ConstructorDescription
MultiDecodeType(SingleDecodeType[] barcodeTypes)Initializes a new instance of the MultiDecodeType class.
MultiDecodeType(BaseDecodeType[] barcodeTypes)Initializes a new instance of the MultiDecodeType class.

Methods

MethodDescription
add(SingleDecodeType singleType)Adds one more SingleDecodeType to the MultiDecodeType.
containsAll(BaseDecodeType[] barcodeTypes)Check if this contains all types from barcode types.
containsAny(BaseDecodeType[] decodeTypes)Is contain any of types
equals(MultiDecodeType other)Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
equals(SingleDecodeType other)Returns a value indicating whether this decode types collection contains only specified SingleDecodeType value.
equals(Object obj)Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
exclude(SingleDecodeType singleType)Excludes SingleDecodeType from the MultiDecodeType and returns new MultiDecodeType instance.
getClass()
getSingleTypes()Represents a list of single types.
getSingleTypesCount()Returns a number of single types.
hashCode()Returns the hash code for this instance.
notify()
notifyAll()
toString()Overridden method representing MultiDecodeType as a string.
tryParseBaseDecodeType(String parsingType)Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
tryParseMultiDecodeType(String parsingType)Converts the string representation of a MultiDecodeType 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)

MultiDecodeType(SingleDecodeType[] barcodeTypes)

public MultiDecodeType(SingleDecodeType[] barcodeTypes)

Initializes a new instance of the MultiDecodeType class.

Parameters:

ParameterTypeDescription
barcodeTypesSingleDecodeType[]Array of single decode types

MultiDecodeType(BaseDecodeType[] barcodeTypes)

public MultiDecodeType(BaseDecodeType[] barcodeTypes)

Initializes a new instance of the MultiDecodeType class.

Parameters:

ParameterTypeDescription
barcodeTypesBaseDecodeType[]Array of multi and single decode types

add(SingleDecodeType singleType)

public final void add(SingleDecodeType singleType)

Adds one more SingleDecodeType to the MultiDecodeType.

Parameters:

ParameterTypeDescription
singleTypeSingleDecodeTypeA Single DecodeType to be added to the list

containsAll(BaseDecodeType[] barcodeTypes)

public final boolean containsAll(BaseDecodeType[] barcodeTypes)

Check if this contains all types from barcode types.

Parameters:

ParameterTypeDescription
barcodeTypesBaseDecodeType[]Input single or multi barcode types

Returns: boolean - Value is a true if all types are included into

containsAny(BaseDecodeType[] decodeTypes)

public boolean containsAny(BaseDecodeType[] decodeTypes)

Is contain any of types

Parameters:

ParameterTypeDescription
decodeTypesBaseDecodeType[]Decode types

Returns: boolean - Value is a true if any types are included into

equals(MultiDecodeType other)

public boolean equals(MultiDecodeType other)

Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.

Parameters:

ParameterTypeDescription
otherMultiDecodeTypeAn MultiDecodeType value to compare to this instance.

Returns: boolean - true if obj has the same value as this instance; otherwise, false .

equals(SingleDecodeType other)

public boolean equals(SingleDecodeType other)

Returns a value indicating whether this decode types collection contains only specified SingleDecodeType value.

Parameters:

ParameterTypeDescription
otherSingleDecodeTypeAn SingleDecodeType value to compare to this decode types collection.

Returns: boolean - true if this collection contains only specified decode type; otherwise, false .

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn System.Object value to compare to this instance.

Returns: boolean - true if obj has the same value as this instance; otherwise, false .

exclude(SingleDecodeType singleType)

public final MultiDecodeType exclude(SingleDecodeType singleType)

Excludes SingleDecodeType from the MultiDecodeType and returns new MultiDecodeType instance.

Parameters:

ParameterTypeDescription
singleTypeSingleDecodeTypeA Single DecodeType to be excluded.

Returns: MultiDecodeType - New MultiDecodeType instance with excluded SingleDecodeType.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getSingleTypes()

public final List<SingleDecodeType> getSingleTypes()

Represents a list of single types.

Returns: java.util.List<com.aspose.barcode.barcoderecognition.SingleDecodeType> - List of single types

getSingleTypesCount()

public final int getSingleTypesCount()

Returns a number of single types.

Returns: int

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 MultiDecodeType as a string.

Returns: java.lang.String - A string representing MultiDecodeType instance as “singleDecodeType1, singleDecodeType2, …”

“AllSupportedTypes” 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:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a MultiDecodeType representation to convert.

Returns: BaseDecodeType - An actual MultiDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultiDecodeType (“None”).

tryParseMultiDecodeType(String parsingType)

public static MultiDecodeType tryParseMultiDecodeType(String parsingType)

Converts the string representation of a MultiDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a MultiDecodeType representation to convert.

Returns: MultiDecodeType - An actual MultiDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultiDecodeType (“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:

ParameterTypeDescription
parsingTypejava.lang.StringA 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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int