com.aspose.barcode.barcoderecognition

Class MultyDecodeType



  • 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);
     
    • 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
    • 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 class java.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 class BaseDecodeType
        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(MultyDecodeType other)

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

        Overrides:
        equals in class BaseDecodeType
        Parameters:
        other - An MultyDecodeType 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 class BaseDecodeType
        Returns:
        A 32-bit signed integer hash code.