接口 OperationParameter


public interface OperationParameter
A single operation parameter.
从以下版本开始:
2.0.0
作者:
Phillip Webb, Moritz Halbritter
  • 方法概要

    修饰符和类型
    方法
    说明
    <T extends Annotation>
    T
    getAnnotation(Class<T> annotation)
    Returns this element's annotation for the specified type if such an annotation is present, else null.
    Returns the parameter name.
    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

      <T extends Annotation> T getAnnotation(Class<T> annotation)
      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