Package com.adyen.model.tapi
Enum PrinterStatus
- java.lang.Object
-
- java.lang.Enum<PrinterStatus>
-
- com.adyen.model.tapi.PrinterStatus
-
- All Implemented Interfaces:
Serializable,Comparable<PrinterStatus>
public enum PrinterStatus extends Enum<PrinterStatus>
Indicates if the printer is working and usable. Possible values: * **NoPaper** * **OK** * **OutOfOrder** * **PaperJam** * **PaperLow**
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_PAPEROKOUT_OF_ORDERPAPER_JAMPAPER_LOW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrinterStatusfromValue(String value)StringgetValue()StringtoString()static PrinterStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static PrinterStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PAPER
public static final PrinterStatus NO_PAPER
-
OK
public static final PrinterStatus OK
-
OUT_OF_ORDER
public static final PrinterStatus OUT_OF_ORDER
-
PAPER_JAM
public static final PrinterStatus PAPER_JAM
-
PAPER_LOW
public static final PrinterStatus PAPER_LOW
-
-
Method Detail
-
values
public static PrinterStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrinterStatus c : PrinterStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrinterStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PrinterStatus>
-
fromValue
public static PrinterStatus fromValue(String value)
-
-