Class ParameterTypes
java.lang.Object
org.springframework.data.util.ParameterTypes
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0, this class is not intended for public use and will be removed in future versions.
Abstraction over a list of parameter value types. Allows to check whether a list of parameter values with the given
type setup is a candidate for the invocation of a given
Method (see areValidFor(Method)). This is
necessary to properly match parameter values against methods declaring varargs arguments. The implementation favors
direct matches and only computes the alternative sets of types to be considered if the primary one doesn't match.- Since:
- 2.1.7
- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionParameterTypes(List<TypeDescriptor> types, Lazy<Collection<ParameterTypes>> alternatives) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanareValidFor(Method method) Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the parameter types are valid for the givenMethod.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanexactlyMatchParametersOf(Method method) Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the current parameter types match the givenMethod's parameters exactly, i.e. they're equal, not only assignable.protected @Nullable ParameterTypesDeprecated, for removal: This API element is subject to removal in a future version.protected final @Nullable ParameterTypesgetParent(TypeDescriptor tail) Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.static ParameterTypesof(List<TypeDescriptor> types) Deprecated, for removal: This API element is subject to removal in a future version.Returns theParameterTypesfor the given list ofTypeDescriptors.toString()Deprecated, for removal: This API element is subject to removal in a future version.protected @Nullable ParameterTypesDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ParameterTypes
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Returns theParameterTypesfor the given list ofTypeDescriptors.- Parameters:
types- must not be null.- Returns:
-
areValidFor
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the parameter types are valid for the givenMethod. That means, a parameter value list with the given type arrangement is a valid list to invoke the given method.- Parameters:
method- must not be null.- Returns:
-
exactlyMatchParametersOf
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the current parameter types match the givenMethod's parameters exactly, i.e. they're equal, not only assignable.- Parameters:
method- must not be null.- Returns:
-
toString
-
getParent
Deprecated, for removal: This API element is subject to removal in a future version. -
getParent
Deprecated, for removal: This API element is subject to removal in a future version. -
withLastVarArgs
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
-
hashCode
-