Package nl.b3p.tailormap.api.admin.model
Enum ServerSentEvent.EventTypeEnum
- java.lang.Object
-
- java.lang.Enum<ServerSentEvent.EventTypeEnum>
-
- nl.b3p.tailormap.api.admin.model.ServerSentEvent.EventTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ServerSentEvent.EventTypeEnum>
- Enclosing class:
- ServerSentEvent
public static enum ServerSentEvent.EventTypeEnum extends Enum<ServerSentEvent.EventTypeEnum>
Type of event
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITY_CREATEDENTITY_DELETEDENTITY_UPDATEDKEEP_ALIVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerSentEvent.EventTypeEnumfromValue(String value)StringgetValue()StringtoString()static ServerSentEvent.EventTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ServerSentEvent.EventTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEEP_ALIVE
public static final ServerSentEvent.EventTypeEnum KEEP_ALIVE
-
ENTITY_CREATED
public static final ServerSentEvent.EventTypeEnum ENTITY_CREATED
-
ENTITY_DELETED
public static final ServerSentEvent.EventTypeEnum ENTITY_DELETED
-
ENTITY_UPDATED
public static final ServerSentEvent.EventTypeEnum ENTITY_UPDATED
-
-
Method Detail
-
values
public static ServerSentEvent.EventTypeEnum[] 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 (ServerSentEvent.EventTypeEnum c : ServerSentEvent.EventTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerSentEvent.EventTypeEnum 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<ServerSentEvent.EventTypeEnum>
-
fromValue
public static ServerSentEvent.EventTypeEnum fromValue(String value)
-
-