public class MultiDecodeType extends BaseDecodeType
Composite decode type.
This sample shows how to create compound MultiDecode types that combine SingleDecodeType and MultiDecode types.
| Constructor and Description |
|---|
MultiDecodeType(BaseDecodeType... barcodeTypes)
Initializes a new instance of the
MultiDecodeType class. |
MultiDecodeType(SingleDecodeType... barcodeTypes)
Initializes a new instance of the
MultiDecodeType class. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SingleDecodeType singleType)
Adds one more
SingleDecodeType to the MultiDecodeType. |
boolean |
containsAll(BaseDecodeType... barcodeTypes)
Check if this contains all types from barcode types.
|
boolean |
containsAny(BaseDecodeType... decodeTypes)
Is contain any of types
|
boolean |
equals(MultiDecodeType other)
Returns a value indicating whether this instance is equal to a specified
MultiDecodeType value. |
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
MultiDecodeType value. |
boolean |
equals(SingleDecodeType other)
Returns a value indicating whether this decode types collection contains only specified
SingleDecodeType value. |
MultiDecodeType |
exclude(SingleDecodeType singleType)
Excludes
SingleDecodeType from the MultiDecodeType and returns new MultiDecodeType instance. |
java.util.List<SingleDecodeType> |
getSingleTypes()
Represents a list of single types.
|
int |
getSingleTypesCount()
Returns a number of single types.
|
int |
hashCode()
Returns the hash code for this instance.
|
java.lang.String |
toString()
Overridden method representing MultiDecodeType as a string.
|
tryParseBaseDecodeType, tryParseMultiDecodeType, tryParseSingleDecodeTypepublic MultiDecodeType(SingleDecodeType... barcodeTypes)
Initializes a new instance of the MultiDecodeType class.
barcodeTypes - Array of single decode typespublic MultiDecodeType(BaseDecodeType... barcodeTypes)
Initializes a new instance of the MultiDecodeType class.
barcodeTypes - Array of multi and single decode typespublic final void add(SingleDecodeType singleType)
Adds one more SingleDecodeType to the MultiDecodeType.
singleType - A Single DecodeType to be added to the listpublic final MultiDecodeType exclude(SingleDecodeType singleType)
Excludes SingleDecodeType from the MultiDecodeType and returns new MultiDecodeType instance.
singleType - A Single DecodeType to be excluded.public final boolean containsAll(BaseDecodeType... barcodeTypes)
Check if this contains all types from barcode types.
barcodeTypes - Input single or multi barcode typespublic java.lang.String toString()
Overridden method representing MultiDecodeType as a string.
toString in class java.lang.Object<b>"AllSupportedTypes"</b> returns when all types are included.
public boolean containsAny(BaseDecodeType... decodeTypes)
Is contain any of types
containsAny in class BaseDecodeTypedecodeTypes - Decode typespublic final java.util.List<SingleDecodeType> getSingleTypes()
Represents a list of single types.
public final int getSingleTypesCount()
Returns a number of single types.
public boolean equals(MultiDecodeType other)
Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
equals in class BaseDecodeTypeother - An MultiDecodeType 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(SingleDecodeType other)
Returns a value indicating whether this decode types collection contains only specified SingleDecodeType value.
equals in class BaseDecodeTypeother - An SingleDecodeType value to compare to this decode types collection.<b>true</b> if this collection contains only specified decode type; otherwise, <b>false</b>.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
equals in class BaseDecodeTypeobj - 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 java.lang.Object