public enum CouponReport extends java.lang.Enum<CouponReport> implements IEnumType
Enum Constant and Description |
---|
BothCoupon
Scanning an old coupon symbol reports both UPC and Code 128, and scanning
an interim coupon symbol or a new coupon symbol reports Databar Expanded.
|
NewCoupon
Scanning an old coupon symbol reports either UPC or Code 128, and scanning
an interim coupon symbol or a new coupon symbol reports Databar Expanded.
|
OldCoupon
Scanning an old coupon symbol reports both UPC and Code 128, scanning an
interim coupon symbol reports UPC, and scanning a new coupon symbol reports nothing (no decode).
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
toString() |
static CouponReport |
valueOf(int code) |
static CouponReport |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CouponReport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CouponReport OldCoupon
public static final CouponReport NewCoupon
public static final CouponReport BothCoupon
public static CouponReport[] values()
for (CouponReport c : CouponReport.values()) System.out.println(c);
public static CouponReport valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in interface IEnumType
toString
in class java.lang.Enum<CouponReport>
public static CouponReport valueOf(int code)