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_EXTENDED);

Methods

MethodDescription
containsAny(BaseDecodeType[] types)Determines whether any of the given decode types is included into
equals(Object obj)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
getClass()
hashCode()Returns the hash code for this instance.
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(Object obj)

public boolean equals(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn System.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 int hashCode()

Returns the hash code for this instance.

Returns: int - A 32-bit signed integer hash code.

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