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
Modifier and Type | Method and Description |
---|---|
boolean |
containsAny(BaseDecodeType... types)
Returns a value indicating whether this instance is included into the list specified.
|
boolean |
equals(MultyDecodeType other)
Returns a value indicating whether this instance is equal to a specified
BaseDecodeType value. |
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
SingleDecodeType value. |
boolean |
equals(SingleDecodeType other)
Returns a value indicating whether this instance is equal to a specified
BaseDecodeType 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 type
|
java.lang.String |
getTypeName()
Gets a name of decode type
|
int |
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.
|
tryParseBaseDecodeType, tryParseMultyDecodeType, tryParseSingleDecodeType
public short getTypeIndex()
Gets an index of decode type
public java.lang.String getTypeName()
Gets a name of decode type
public java.lang.String toString()
Overridden method representing SingleDecodeType as the Name string.
toString
in class java.lang.Object
public java.lang.String getString()
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".
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".
instance
- The SingleDecodeType instance to convertpublic boolean containsAny(BaseDecodeType... types)
Returns a value indicating whether this instance is included into the list specified.
containsAny
in class BaseDecodeType
types
- Array of single and multy decode typespublic boolean equals(SingleDecodeType other)
BaseDecodeType
Returns a value indicating whether this instance is equal to a specified BaseDecodeType
value.
equals
in class BaseDecodeType
other
- An java.lang.Object value to compare to this instance.public boolean equals(MultyDecodeType other)
BaseDecodeType
Returns a value indicating whether this instance is equal to a specified BaseDecodeType
value.
equals
in class BaseDecodeType
other
- An java.lang.Object value to compare to this instance.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified SingleDecodeType
value.
equals
in class BaseDecodeType
obj
- An System.Object value to compare to this instance.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public static SingleDecodeType parseSingleDecodeType(java.lang.String stringDecodeType)
Converts the string representation of the name of a SingleDecodeType to its instance.
stringDecodeType
- A string containing the name of a SingleDecodeType to convert.SingleDecodeType