Class SingleDecodeType
- java.lang.Object
-
- com.aspose.barcode.barcoderecognition.BaseDecodeType
-
- com.aspose.barcode.barcoderecognition.SingleDecodeType
-
- All Implemented Interfaces:
android.os.Parcelable
public final class SingleDecodeType extends BaseDecodeType
Single decode type. See decode type to get instance.
This sample shows how to get instance of single decode type.
SingleDecodeType singleType = DecodeType.QR
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BaseDecodeType>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description SingleDecodeType(short typeIndex, java.lang.String typeName)
Initializes a new instance ofSingleDecodeType
class by type index and nameprotected
SingleDecodeType(android.os.Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAny(BaseDecodeType... types)
Returns a value indicating whether this instance is included into the list specified.int
describeContents()
boolean
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specifiedSingleDecodeType
value.java.lang.String
getString()
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".static java.lang.String
getString(SingleDecodeType instance)
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".short
getTypeIndex()
Gets an index of decode typejava.lang.String
getTypeName()
Gets a name of decode typeint
hashCode()
Returns the hash code for this instance.static SingleDecodeType
parseSingleDecodeType(java.lang.String stringDecodeType)
Converts the string representation of the name of a SingleDecodeType to its instance.java.lang.String
toString()
Overridden method representing SingleDecodeType as the Name string.void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class com.aspose.barcode.barcoderecognition.BaseDecodeType
tryParseBaseDecodeType, tryParseMultyDecodeType, tryParseSingleDecodeType
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BaseDecodeType> CREATOR
-
-
Constructor Detail
-
SingleDecodeType
public SingleDecodeType(short typeIndex, java.lang.String typeName)
Initializes a new instance of
SingleDecodeType
class by type index and name- Parameters:
typeIndex
- Gets an index of decode typetypeName
- Gets a name of decode type
-
SingleDecodeType
protected SingleDecodeType(android.os.Parcel in)
-
-
Method Detail
-
getTypeIndex
public short getTypeIndex()
Gets an index of decode type
- Returns:
- The index of decode type
-
getTypeName
public java.lang.String getTypeName()
Gets a name of decode type
- Returns:
- The name of decode type
-
toString
public java.lang.String toString()
Overridden method representing SingleDecodeType as the Name string.
- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representing the name of the single decode type
-
getString
public java.lang.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 java.lang.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 classBaseDecodeType
- Parameters:
types
- Array of single and multy decode types- Returns:
- Value is a true if any types are included into
-
equals
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
SingleDecodeType
value.- Overrides:
equals
in classBaseDecodeType
- Parameters:
obj
- An System.Object 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.
-
parseSingleDecodeType
public static SingleDecodeType parseSingleDecodeType(java.lang.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 {@link }.
- See Also:
SingleDecodeType
-
describeContents
public int describeContents()
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
-
-