public abstract class BaseDecodeType extends Object implements com.aspose.ms.System.IEquatable<BaseDecodeType>
Base class for MultyDecodeType and SingleDecodeType.
Modifier and Type | Method and Description |
---|---|
abstract boolean |
containsAny(BaseDecodeType... types)
Determines whether any of the given decode types is included into
|
static long |
convert(BaseDecodeType decodeType)
Converts an instance of the SingleDecodeType or MultyDecodeType to BarCodeReadType constant.
|
static BaseDecodeType |
convert(long type)
Convert instance of the BarCodeReadType to instance of SingleDecodeType or MultyDecodeType
|
static long |
convertMulty(MultyDecodeType multyType)
Converts an instance of the MultyDecodeType to BarCodeReadType constant.
|
static long |
convertSingle(SingleDecodeType barcodeType)
Converts an instance of the SingleDecodeType to BarCodeReadType constant.
|
boolean |
equals(BaseDecodeType other)
Returns a value indicating whether this instance is equal to a specified
BaseDecodeType value. |
boolean |
equals(MultyDecodeType other)
Returns a value indicating whether this instance is equal to a specified
MultyDecodeType value. |
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified
BaseDecodeType value. |
boolean |
equals(SingleDecodeType other)
Returns a value indicating whether this instance is equal to a specified
SingleDecodeType value. |
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
tryParse(String parsingType,
BaseDecodeType[] result)
Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
|
static boolean |
tryParse(String parsingType,
MultyDecodeType[] result)
Converts the string representation of a MultyDecodeType to its instance.
|
static boolean |
tryParse(String parsingType,
SingleDecodeType[] result)
Converts the string representation of a SingleDecodeType to its instance.
|
public static BaseDecodeType convert(long type)
Convert instance of the BarCodeReadType to instance of SingleDecodeType or MultyDecodeType
type
- an instance of the BarCodeReadType enumpublic static long convertSingle(SingleDecodeType barcodeType)
Converts an instance of the SingleDecodeType to BarCodeReadType constant.
barcodeType
- An instance of the SingleDecodeTypepublic static long convert(BaseDecodeType decodeType)
Converts an instance of the SingleDecodeType or MultyDecodeType to BarCodeReadType constant.
decodeType
- An instance of the SingleDecodeType or MultyDecodeTypepublic static long convertMulty(MultyDecodeType multyType)
Converts an instance of the MultyDecodeType to BarCodeReadType constant.
multyType
- An instance of the MultyDecodeTypepublic abstract boolean containsAny(BaseDecodeType... types)
Determines whether any of the given decode types is included into
types
- Types to verifypublic boolean equals(SingleDecodeType other)
Returns a value indicating whether this instance is equal to a specified SingleDecodeType
value.
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(MultyDecodeType other)
Returns a value indicating whether this instance is equal to a specified MultyDecodeType
value.
other
- An MultyDecodeType
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(BaseDecodeType other)
Returns a value indicating whether this instance is equal to a specified BaseDecodeType
value.
other
- An BaseDecodeType
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 BaseDecodeType
value.
equals
in interface com.aspose.ms.System.IEquatable<BaseDecodeType>
equals
in class Object
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.
public static boolean tryParse(String parsingType, SingleDecodeType[] result)
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
parsingType
- A string containing a SingleDecodeType representation to convert.result
- An actual SingleDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or SingleDecodeType (-1, "None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.None
public static boolean tryParse(String parsingType, MultyDecodeType[] result)
Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
parsingType
- A string containing a MultyDecodeType representation to convert.result
- An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType ("None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.None
public static boolean tryParse(String parsingType, BaseDecodeType[] result)
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.
parsingType
- A string containing a MultyDecodeType representation to convert.result
- An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType ("None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.None
Copyright (c) 2002-2017 Aspose Pty Ltd. All Rights Reserved.