com.aspose.barcode.barcoderecognition

Class SingleDecodeType

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<BaseDecodeType>


    public final class SingleDecodeType
    extends BaseDecodeType

    Single decode type. See decode type to get instance.


     Create single decode type
     
     SingleDecodeType singleType = DecodeType.QR
     

    • Constructor Detail

      • SingleDecodeType

        public SingleDecodeType(short typeIndex,
                        String typeName)

        Initializes a new instance of SingleDecodeType class by type index and name

        Parameters:
        typeIndex -
        typeName -
    • Method Detail

      • getTypeIndex

        public short getTypeIndex()

        Gets an index of decode type

      • getTypeName

        public String getTypeName()

        Gets a name of decode type

      • toString

        public String toString()

        Overridden method representing SingleDecodeType as the Name string.

        Overrides:
        toString in class Object
        Returns:
        A string representing the name of the single decode type
      • getString

        public 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

        public static String getString(SingleDecodeType instance)

        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

        public boolean containsAny(BaseDecodeType... types)

        Returns a value indicating whether this instance is included into the list specified.

        Specified by:
        containsAny in class BaseDecodeType
        Parameters:
        types - Array of single and multy decode types
        Returns:
        Value is a true if any types are included into
      • equals

        public boolean equals(SingleDecodeType other)

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

        Overrides:
        equals in class BaseDecodeType
        Parameters:
        other - An SingleDecodeType value to compare to this instance.
        Returns:
        <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
      • equals

        public boolean equals(Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<BaseDecodeType>
        Overrides:
        equals in class BaseDecodeType
        Parameters:
        obj - An System.Object value to compare to this instance.
        Returns:
        <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
      • hashCode

        public int hashCode()

        Returns the hash code for this instance.

        Overrides:
        hashCode in class BaseDecodeType
        Returns:
        A 32-bit signed integer hash code.
      • getSchema

        public com.aspose.ms.System.Xml.XmlSchema getSchema()

        Returns:
      • parse

        public static SingleDecodeType parse(String stringDecodeType)

        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 <b></b>.
        See Also:
        SingleDecodeType, DecodeType.None