public final class SingleDecodeType extends BaseDecodeType
Single decode type. See decode type to get instance.
Create single decode typeSingleDecodeType singleType = DecodeType.QR
Constructor and Description |
---|
SingleDecodeType(short typeIndex,
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(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. |
com.aspose.ms.System.Xml.XmlSchema |
getSchema() |
String |
getString()
Converts the instance of SingleDecodeType to its equivalent string representation,
using the following format: "Index:-1; Name:None".
|
static 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
|
String |
getTypeName()
Gets a name of decode type
|
int |
hashCode()
Returns the hash code for this instance.
|
static SingleDecodeType |
parse(String stringDecodeType)
Converts the string representation of the name of a SingleDecodeType to its instance.
|
String |
toString()
Overridden method representing SingleDecodeType as the Name string.
|
convert, convert, convertMulty, convertSingle, equals, equals, tryParse, tryParse, tryParse
public SingleDecodeType(short typeIndex, String typeName)
Initializes a new instance of SingleDecodeType
class by type index and name
typeIndex
- typeName
- public short getTypeIndex()
Gets an index of decode type
public String getTypeName()
Gets a name of decode type
public String toString()
Overridden method representing SingleDecodeType as the Name string.
public String getString()
Converts the instance of SingleDecodeType to its equivalent string representation, using the following format: "Index:-1; Name:None".
public static 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.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified SingleDecodeType
value.
equals
in interface com.aspose.ms.System.IEquatable<BaseDecodeType>
equals
in class BaseDecodeType
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class BaseDecodeType
public com.aspose.ms.System.Xml.XmlSchema getSchema()
public static SingleDecodeType parse(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.<b></b>
.SingleDecodeType
,
DecodeType.None
Copyright (c) 2002-2017 Aspose Pty Ltd. All Rights Reserved.