com.aspose.barcode.barcoderecognition

Class BaseDecodeType

  • java.lang.Object
    • com.aspose.barcode.barcoderecognition.BaseDecodeType
  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<BaseDecodeType>
    Direct Known Subclasses:
    MultyDecodeType, SingleDecodeType


    public abstract class BaseDecodeType
    extends java.lang.Object
    implements com.aspose.ms.System.IEquatable<BaseDecodeType>

    Base class for MultyDecodeType and SingleDecodeType.

    • Method Summary

      Methods 
      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(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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convert

        public static BaseDecodeType convert(long type)

        Convert instance of the BarCodeReadType to instance of SingleDecodeType or MultyDecodeType

        Parameters:
        type - an instance of the BarCodeReadType enum
        Returns:
        The instance of SingleDecodeType or MultyDecodeType
        Throws:
        BarCodeException
      • convertSingle

        public static long convertSingle(SingleDecodeType barcodeType)

        Converts an instance of the SingleDecodeType to BarCodeReadType constant.

        Parameters:
        barcodeType - An instance of the SingleDecodeType
        Returns:
        Barcode read type
      • convert

        public static long convert(BaseDecodeType decodeType)

        Converts an instance of the SingleDecodeType or MultyDecodeType to BarCodeReadType constant.

        Parameters:
        decodeType - An instance of the SingleDecodeType or MultyDecodeType
        Returns:
        Barcode read type
      • convertMulty

        public static long convertMulty(MultyDecodeType multyType)

        Converts an instance of the MultyDecodeType to BarCodeReadType constant.

        Parameters:
        multyType - An instance of the MultyDecodeType
        Returns:
        Barcode read type
      • containsAny

        public abstract boolean containsAny(BaseDecodeType... types)

        Determines whether any of the given decode types is included into

        Parameters:
        types - Types to verify.
        Returns:
        Value is a true if any types are included into.
      • equals

        public boolean equals(SingleDecodeType other)

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

        Parameters:
        other - An SingleDecodeType value to compare to this instance.
        Returns:
        True if obj has the same value as this instance; otherwise, false.
      • equals

        public boolean equals(MultyDecodeType other)

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

        Parameters:
        other - An MultyDecodeType value to compare to this instance.
        Returns:
        True if obj has the same value as this instance; otherwise, false.
      • equals

        public boolean equals(BaseDecodeType other)

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

        Parameters:
        other - An BaseDecodeType value to compare to this instance.
        Returns:
        Trues if obj has the same value as this instance; otherwise, false.
      • equals

        public boolean equals(java.lang.Object obj)

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

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<BaseDecodeType>
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - An System.Object value to compare to this instance.
        Returns:
        True if obj has the same value as this instance; otherwise, false.
      • hashCode

        public int hashCode()

        Returns the hash code for this instance.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A 32-bit signed integer hash code.
      • tryParseSingleDecodeType

        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.

        Parameters:
        parsingType - A string containing a SingleDecodeType representation to convert.
        Returns:
        An actual SingleDecodeType is returned, when conversion has completed successfully;

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

      • tryParseMultyDecodeType

        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.

        Parameters:
        parsingType - A string containing a MultyDecodeType representation to convert.
        Returns:
        An actual MultyDecodeType is returned, when conversion has completed successfully;

        otherwise it returns indefinite type. or MultyDecodeType ("None").

      • tryParseBaseDecodeType

        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.

        Parameters:
        parsingType - A string containing a MultyDecodeType representation to convert.
        Returns:
        An actual MultyDecodeType is returned, when conversion has completed successfully;

        otherwise it returns indefinite type. or MultyDecodeType ("None").