Spring Hateoas

org.springframework.hateoas.core
Class MethodParameters

java.lang.Object
  extended by org.springframework.hateoas.core.MethodParameters

public class MethodParameters
extends Object

Value object to represent MethodParameters to allow to easily find the ones with a given annotation.

Author:
Oliver Gierke

Constructor Summary
MethodParameters(Method method)
          Creates a new MethodParameter from the given Method.
 
Method Summary
 List<MethodParameter> getParameters()
          Returns all MethodParameters.
 List<MethodParameter> getParametersWith(Class<? extends Annotation> annotation)
          Returns all MethodParameters annotated with the given annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodParameters

public MethodParameters(Method method)
Creates a new MethodParameter from the given Method.

Parameters:
method - must not be null.
Method Detail

getParameters

public List<MethodParameter> getParameters()
Returns all MethodParameters.

Returns:

getParametersWith

public List<MethodParameter> getParametersWith(Class<? extends Annotation> annotation)
Returns all MethodParameters annotated with the given annotation type.

Parameters:
annotation - must not be null.
Returns:

Spring Hateoas

Copyright © 2012-2013 SpringSource, a division of VMware. All Rights Reserved.