BaseDecodeType

Inheritance: java.lang.Object

public abstract class BaseDecodeType

Base class for MultyDecodeType and SingleDecodeType.


This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeType
 
 BaseDecodeType decodeOne = DecodeType.CODE_128;
 BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_FULL_ASCII);

Methods

MethodDescription
containsAny(BaseDecodeType[] types)Determines whether any of the given decode types is included into
equals(MultyDecodeType other)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
equals(SingleDecodeType other)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
equals(Object other)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
getClass()
hashCode()
notify()
notifyAll()
toString()
tryParseBaseDecodeType(String parsingType)Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
tryParseMultyDecodeType(String parsingType)Converts the string representation of a MultyDecodeType to its instance.
tryParseSingleDecodeType(String parsingType)Converts the string representation of a SingleDecodeType to its instance.
wait()
wait(long arg0)
wait(long arg0, int arg1)

containsAny(BaseDecodeType[] types)

public abstract boolean containsAny(BaseDecodeType[] types)

Determines whether any of the given decode types is included into

Parameters:

ParameterTypeDescription
typesBaseDecodeType[]Types to verify.

Returns: boolean - Value is a true if any types are included into.

equals(MultyDecodeType other)

public boolean equals(MultyDecodeType other)

Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.

Parameters:

ParameterTypeDescription
otherMultyDecodeTypeAn java.lang.Object value to compare to this instance.

Returns: boolean - True if obj has the same value as this instance; otherwise, false.

equals(SingleDecodeType other)

public boolean equals(SingleDecodeType other)

Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.

Parameters:

ParameterTypeDescription
otherSingleDecodeTypeAn java.lang.Object value to compare to this instance.

Returns: boolean - True if obj has the same value as this instance; otherwise, false.

equals(Object other)

public boolean equals(Object other)

Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.

Parameters:

ParameterTypeDescription
otherjava.lang.ObjectAn java.lang.Object value to compare to this instance.

Returns: boolean - True if obj has the same value as this instance; otherwise, false.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

tryParseBaseDecodeType(String parsingType)

public static BaseDecodeType tryParseBaseDecodeType(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.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a MultyDecodeType representation to convert.

Returns: BaseDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultyDecodeType (“None”).

tryParseMultyDecodeType(String parsingType)

public static MultyDecodeType tryParseMultyDecodeType(String parsingType)

Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a MultyDecodeType representation to convert.

Returns: MultyDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultyDecodeType (“None”).

tryParseSingleDecodeType(String parsingType)

public static SingleDecodeType tryParseSingleDecodeType(String parsingType)

Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.

Returns: SingleDecodeType - An actual SingleDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or SingleDecodeType (-1, “None”).

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int