Package com.helger.regrep
Enum ERegRepResponseStatus
- java.lang.Object
-
- java.lang.Enum<ERegRepResponseStatus>
-
- com.helger.regrep.ERegRepResponseStatus
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<ERegRepResponseStatus>
public enum ERegRepResponseStatus extends Enum<ERegRepResponseStatus> implements com.helger.commons.id.IHasID<String>
Query response status enum- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILUREPARTIAL_SUCCESSSUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ERegRepResponseStatusgetFromIDOrDefault(String sID, ERegRepResponseStatus eDefault)static ERegRepResponseStatusgetFromIDOrNull(String sID)StringgetID()static ERegRepResponseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ERegRepResponseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ERegRepResponseStatus SUCCESS
-
PARTIAL_SUCCESS
public static final ERegRepResponseStatus PARTIAL_SUCCESS
-
FAILURE
public static final ERegRepResponseStatus FAILURE
-
-
Method Detail
-
values
public static ERegRepResponseStatus[] 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 (ERegRepResponseStatus c : ERegRepResponseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ERegRepResponseStatus 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static ERegRepResponseStatus getFromIDOrNull(@Nullable String sID)
-
getFromIDOrDefault
@Nullable public static ERegRepResponseStatus getFromIDOrDefault(@Nullable String sID, @Nullable ERegRepResponseStatus eDefault)
-
-