public abstract class BaseDecodeType
extends java.lang.Object
Base class for MultyDecodeType and SingleDecodeType.
This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeTypeBaseDecodeType decodeOne = DecodeType.CODE_128; BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_EXTENDED);
Modifier and Type | Method and Description |
---|---|
abstract boolean |
containsAny(BaseDecodeType... types)
Determines whether any of the given decode types is included into
|
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(java.lang.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 BaseDecodeType |
tryParseBaseDecodeType(java.lang.String parsingType)
Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
|
static MultyDecodeType |
tryParseMultyDecodeType(java.lang.String parsingType)
Converts the string representation of a MultyDecodeType to its instance.
|
static SingleDecodeType |
tryParseSingleDecodeType(java.lang.String parsingType)
Converts the string representation of a SingleDecodeType to its instance.
|
public abstract boolean containsAny(BaseDecodeType... types)
Determines whether any of the given decode types is included into
types
- Types to verify.public 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.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.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.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified BaseDecodeType
value.
equals
in class java.lang.Object
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 tryParseSingleDecodeType(java.lang.String parsingType)
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.otherwise it returns indefinite type. or SingleDecodeType (-1, "None").
public static MultyDecodeType tryParseMultyDecodeType(java.lang.String parsingType)
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.otherwise it returns indefinite type. or MultyDecodeType ("None").
public static BaseDecodeType tryParseBaseDecodeType(java.lang.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.
parsingType
- A string containing a MultyDecodeType representation to convert.otherwise it returns indefinite type. or MultyDecodeType ("None").