Package com.inteliqua.rest.common
Enum APIRequestType
- java.lang.Object
-
- java.lang.Enum<APIRequestType>
-
- com.inteliqua.rest.common.APIRequestType
-
- All Implemented Interfaces:
Serializable,Comparable<APIRequestType>
public enum APIRequestType extends Enum<APIRequestType>
Enum representing the different types of API requests.This enum defines various types of operations that can be performed in an API, including fetching data, creating new resources, updating existing resources, searching for specific data, and deleting resources.
- FETCH: Represents a request to retrieve data.
- CREATE: Represents a request to create a new resource.
- UPDATE: Represents a request to modify an existing resource.
- SEARCH: Represents a request to search for data based on some criteria.
- DELETE: Represents a request to remove a resource.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATERepresents a request to create a new resource.DELETERepresents a request to delete a resource.FETCHRepresents a request to fetch data.SEARCHRepresents a request to search for data.UPDATERepresents a request to update an existing resource.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static APIRequestTypevalueOf(String name)Returns the enum constant of this type with the specified name.static APIRequestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FETCH
public static final APIRequestType FETCH
Represents a request to fetch data.
-
CREATE
public static final APIRequestType CREATE
Represents a request to create a new resource.
-
UPDATE
public static final APIRequestType UPDATE
Represents a request to update an existing resource.
-
SEARCH
public static final APIRequestType SEARCH
Represents a request to search for data.
-
DELETE
public static final APIRequestType DELETE
Represents a request to delete a resource.
-
-
Method Detail
-
values
public static APIRequestType[] 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 (APIRequestType c : APIRequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIRequestType 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
-
-