Package com.xendit.network
Enum RequestResource.Method
- java.lang.Object
-
- java.lang.Enum<RequestResource.Method>
-
- com.xendit.network.RequestResource.Method
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RequestResource.Method>
- Enclosing class:
- RequestResource
public static enum RequestResource.Method extends java.lang.Enum<RequestResource.Method>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestResource.MethodfromString(java.lang.String text)java.lang.StringgetText()static RequestResource.MethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RequestResource.Method[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final RequestResource.Method GET
-
POST
public static final RequestResource.Method POST
-
PATCH
public static final RequestResource.Method PATCH
-
DELETE
public static final RequestResource.Method DELETE
-
-
Method Detail
-
values
public static RequestResource.Method[] 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 (RequestResource.Method c : RequestResource.Method.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestResource.Method 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
-
getText
public java.lang.String getText()
-
fromString
@Nullable public static RequestResource.Method fromString(java.lang.String text)
-
-