Enum IfExistsType
- java.lang.Object
-
- java.lang.Enum<IfExistsType>
-
- io.apicurio.registry.rest.v1.beans.IfExistsType
-
- All Implemented Interfaces:
Serializable
,Comparable<IfExistsType>
public enum IfExistsType extends Enum<IfExistsType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL
RETURN
RETURN_OR_UPDATE
UPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IfExistsType
fromValue(String value)
String
toString()
String
value()
static IfExistsType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IfExistsType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL
public static final IfExistsType FAIL
-
UPDATE
public static final IfExistsType UPDATE
-
RETURN
public static final IfExistsType RETURN
-
RETURN_OR_UPDATE
public static final IfExistsType RETURN_OR_UPDATE
-
-
Method Detail
-
values
public static IfExistsType[] 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 (IfExistsType c : IfExistsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IfExistsType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<IfExistsType>
-
value
public String value()
-
fromValue
public static IfExistsType fromValue(String value)
-
-