SingleDecodeType

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

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

Constructors

ConstructorDescription
SingleDecodeType(short typeIndex, String typeName)Initializes a new instance of SingleDecodeType class by type index and name

Fields

FieldDescription
CREATOR

Methods

MethodDescription
containsAny(BaseDecodeType[] types)Returns a value indicating whether this instance is included into the list specified.
describeContents()
equals(Object obj)Returns a value indicating whether this instance is equal to a specified SingleDecodeType value.
getClass()
getString()Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: “Index:-1; Name:None”.
getString(SingleDecodeType instance)Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: “Index:-1; Name:None”.
getTypeIndex()Gets an index of decode type
getTypeName()Gets a name of decode type
hashCode()Returns the hash code for this instance.
notify()
notifyAll()
parseSingleDecodeType(String stringDecodeType)Converts the string representation of the name of a SingleDecodeType to its instance.
toString()Overridden method representing SingleDecodeType as the Name string.
tryParseBaseDecodeType(String parsingType)Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
tryParseMultyDecodeType(String parsingType)Converts the string representation of a MultyDecodeType 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)
writeToParcel(Parcel dest, int flags)

SingleDecodeType(short typeIndex, String typeName)

public SingleDecodeType(short typeIndex, String typeName)

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

Parameters:

ParameterTypeDescription
typeIndexshortGets an index of decode type
typeNamejava.lang.StringGets a name of decode type

CREATOR

public static final Parcelable.Creator<BaseDecodeType> CREATOR

containsAny(BaseDecodeType[] types)

public boolean containsAny(BaseDecodeType[] types)

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

Parameters:

ParameterTypeDescription
typesBaseDecodeType[]Array of single and multy decode types

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

describeContents()

public int describeContents()

Returns: int

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified SingleDecodeType 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.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getString()

public String getString()

Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: “Index:-1; Name:None”.

Returns: java.lang.String - A string representing the complete value of the single decode type

getString(SingleDecodeType instance)

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:

ParameterTypeDescription
instanceSingleDecodeTypeThe SingleDecodeType instance to convert

Returns: java.lang.String - A string representing the complete value of the given single decode type

getTypeIndex()

public short getTypeIndex()

Gets an index of decode type

Returns: short - The index of decode type

getTypeName()

public String getTypeName()

Gets a name of decode type

Returns: java.lang.String - The name of decode type

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()

parseSingleDecodeType(String stringDecodeType)

public static SingleDecodeType parseSingleDecodeType(String stringDecodeType)

Converts the string representation of the name of a SingleDecodeType to its instance.

Parameters:

ParameterTypeDescription
stringDecodeTypejava.lang.StringA string containing the name of a SingleDecodeType to convert.

Returns: SingleDecodeType - the instance of , if conversion was successful; otherwise, it returns {@link }.

toString()

public String toString()

Overridden method representing SingleDecodeType as the Name string.

Returns: java.lang.String - A string representing the name of the single decode type

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 MultyDecodeType representation to convert.

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

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

tryParseMultyDecodeType(String parsingType)

public static MultyDecodeType tryParseMultyDecodeType(String parsingType)

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

Parameters:

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

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

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

writeToParcel(Parcel dest, int flags)

public void writeToParcel(Parcel dest, int flags)

Parameters:

ParameterTypeDescription
destandroid.os.Parcel
flagsint