クラス MethodParameters

java.lang.ObjectSE
org.springframework.hateoas.server.core.MethodParameters

public class MethodParameters extends ObjectSE
MethodParameters を表す値オブジェクトで、特定のアノテーションを持つオブジェクトを簡単に見つけることができます。
作成者:
Oliver Gierke
  • コンストラクターの詳細

    • MethodParameters

      public MethodParameters(MethodSE method, @Nullable AnnotationAttribute namingAnnotation)
      指定された MethodSE および AnnotationAttribute の新しい MethodParameters を作成します。後者が指定された場合、メソッドのパラメーター名は、存在する場合はアノテーション属性から検索されます。
      パラメーター:
      method - null であってはなりません。
      namingAnnotation - null でもかまいません。
  • メソッドの詳細

    • of

      public static MethodParameters of(MethodSE method)
      指定された MethodSEMethodParameters を返します。
      パラメーター:
      method - null であってはなりません。
      戻り値:
    • getParameters

      public ListSE<MethodParameter> getParameters()
      すべての MethodParameter を返します。
      戻り値:
    • getParameter

      public OptionalSE<MethodParameter> getParameter(StringSE name)
      指定された名前の MethodParameter を返すか、見つからない場合は null を返します。
      パラメーター:
      name - null または空であってはなりません。
      戻り値:
    • getParametersOfType

      public ListSE<MethodParameter> getParametersOfType(ClassSE<?> type)
      指定された型のすべてのパラメーターを返します。
      パラメーター:
      type - null であってはなりません。
      戻り値:
      導入:
      0.9
    • getParametersWith

      public ListSE<MethodParameter> getParametersWith(ClassSE<? extends AnnotationSE> annotation)
      指定されたアノテーション型でアノテーションが付けられたすべての MethodParameter を返します。
      パラメーター:
      annotation - null であってはなりません。
      戻り値: