public enum ParameterValueType extends Enum<ParameterValueType>
Enum Constant and Description |
---|
BOOLEAN |
DATE |
DECIMAL |
INTEGER |
STRING |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDefaultReturnType() |
static ParameterValueType |
getValueType(Method method) |
static Optional<ParameterValueType> |
getValueType(String valueType) |
boolean |
supportsReturnType(Class<?> returnType) |
static ParameterValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParameterValueType STRING
public static final ParameterValueType INTEGER
public static final ParameterValueType DECIMAL
public static final ParameterValueType BOOLEAN
public static final ParameterValueType DATE
public static ParameterValueType[] values()
for (ParameterValueType c : ParameterValueType.values()) System.out.println(c);
public static ParameterValueType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<?> getDefaultReturnType()
public boolean supportsReturnType(Class<?> returnType)
public static ParameterValueType getValueType(Method method)
public static Optional<ParameterValueType> getValueType(String valueType)
Copyright © 2008–2021 Hippo B.V. (http://www.onehippo.com). All rights reserved.