public static enum Resource.Method extends java.lang.Enum<Resource.Method>
Modifier and Type | Method and Description |
---|---|
static java.util.List<Resource.Method> |
createValue(int bitMask)
Returns a list of the Method values for the bit string
|
static Resource.Method |
createValue(java.lang.String name)
Returns the Method value for the String
|
static int |
getBitMask(java.util.List<Resource.Method> methods)
Returns a bit mask for a list of the Method values
|
static java.lang.String |
listToString(java.util.List<Resource.Method> methods)
Returns String for a list of the Method values
|
static java.util.List<Resource.Method> |
stringToList(java.lang.String methods)
Converts string of the method names into a list of the Method values.
|
int |
value() |
static Resource.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Resource.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resource.Method GET
public static final Resource.Method POST
public static final Resource.Method PUT
public static final Resource.Method DELETE
public static final Resource.Method PATCH
public static Resource.Method[] values()
for (Resource.Method c : Resource.Method.values()) System.out.println(c);
public static Resource.Method valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static Resource.Method createValue(java.lang.String name)
name
- String shall be "GET" or "POST"public static java.util.List<Resource.Method> createValue(int bitMask)
bitMask
- bit stringpublic static int getBitMask(java.util.List<Resource.Method> methods)
methods
- list of the Method valuespublic static java.lang.String listToString(java.util.List<Resource.Method> methods)
methods
- list of the Method values.null
.public static java.util.List<Resource.Method> stringToList(java.lang.String methods)
null
or empty.methods
- string of methods