接口 OperationParameter
public interface OperationParameter
A single operation parameter.
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Moritz Halbritter
-
方法概要
修饰符和类型方法说明<T extends Annotation>
TgetAnnotation
(Class<T> annotation) Returns this element's annotation for the specified type if such an annotation is present, else null.getName()
Returns the parameter name.Class
<?> getType()
Returns the parameter type.boolean
Return if the parameter is mandatory (does not accept null values).
-
方法详细资料
-
getName
String getName()Returns the parameter name.- 返回:
- the name
-
getType
Class<?> getType()Returns the parameter type.- 返回:
- the type
-
isMandatory
boolean isMandatory()Return if the parameter is mandatory (does not accept null values).- 返回:
- if the parameter is mandatory
-
getAnnotation
Returns this element's annotation for the specified type if such an annotation is present, else null.- 类型参数:
T
- type of the annotation- 参数:
annotation
- class of the annotation- 返回:
- annotation value
- 从以下版本开始:
- 2.7.8
-