Package de.willuhn.jameica.hbci.server
Enum InstantPaymentStatus
- java.lang.Object
-
- java.lang.Enum<InstantPaymentStatus>
-
- de.willuhn.jameica.hbci.server.InstantPaymentStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InstantPaymentStatus>
public enum InstantPaymentStatus extends java.lang.Enum<InstantPaymentStatus>
Enum mit den Status-Codes von Instant-Payments.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstantPaymentStatus
determine(java.lang.String status)
Versucht, den Status anhand des uebergebenen Codes zu ermitteln.java.lang.String
getDescription()
Liefert einen sprechenden Beschreibungstext.int
getStatus()
Liefert den Statuscode.boolean
isSuccess()
Liefert true, wenn es sich um einen Erfolgsstatus handelt.static InstantPaymentStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InstantPaymentStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATUS1
public static final InstantPaymentStatus STATUS1
-
STATUS2
public static final InstantPaymentStatus STATUS2
-
STATUS3
public static final InstantPaymentStatus STATUS3
-
STATUS4
public static final InstantPaymentStatus STATUS4
-
STATUS5
public static final InstantPaymentStatus STATUS5
-
STATUS6
public static final InstantPaymentStatus STATUS6
-
STATUS7
public static final InstantPaymentStatus STATUS7
-
STATUS8
public static final InstantPaymentStatus STATUS8
-
STATUS9
public static final InstantPaymentStatus STATUS9
-
-
Method Detail
-
values
public static InstantPaymentStatus[] 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 (InstantPaymentStatus c : InstantPaymentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstantPaymentStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getStatus
public int getStatus()
Liefert den Statuscode.- Returns:
- status der Status-Code.
-
getDescription
public java.lang.String getDescription()
Liefert einen sprechenden Beschreibungstext.- Returns:
- description
-
isSuccess
public boolean isSuccess()
Liefert true, wenn es sich um einen Erfolgsstatus handelt.- Returns:
- success true, wenn es sich um einen Erfolgsstatus handelt.
-
determine
public static InstantPaymentStatus determine(java.lang.String status)
Versucht, den Status anhand des uebergebenen Codes zu ermitteln.- Parameters:
status
- der Status.- Returns:
- der Status oder NULL, wenn er nicht ermittelbar war.
-
-