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
Constructor and Description |
---|
SingleDecodeType(short typeIndex,
java.lang.String typeName)
Initializes a new instance of
SingleDecodeType class by type index and name |
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(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
SingleDecodeType 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.
|
equals, equals, tryParseBaseDecodeType, tryParseMultyDecodeType, tryParseSingleDecodeType
public SingleDecodeType(short typeIndex, java.lang.String typeName)
Initializes a new instance of SingleDecodeType
class by type index and name
typeIndex
- Gets an index of decode typetypeName
- Gets a name of decode typepublic 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)
Returns a value indicating whether this instance is equal to a specified SingleDecodeType
value.
equals
in class BaseDecodeType
other
- An SingleDecodeType
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 BaseDecodeType
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