public class ProducibleOperationArgumentResolver extends java.lang.Object implements OperationArgumentResolver
| Constructor and Description |
|---|
ProducibleOperationArgumentResolver(java.util.function.Supplier<java.util.List<java.lang.String>> accepts)
Create a new
ProducibleOperationArgumentResolver instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResolve(java.lang.Class<?> type)
Return whether an argument of the given
type can be resolved. |
<T> T |
resolve(java.lang.Class<T> type)
Resolves an argument of the given
type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic ProducibleOperationArgumentResolver(java.util.function.Supplier<java.util.List<java.lang.String>> accepts)
ProducibleOperationArgumentResolver instance.accepts - supplier that returns accepted mime typespublic boolean canResolve(java.lang.Class<?> type)
OperationArgumentResolvertype can be resolved.canResolve in interface OperationArgumentResolvertype - argument typetrue if an argument of the required type can be resolved, otherwise
falsepublic <T> T resolve(java.lang.Class<T> type)
OperationArgumentResolvertype.resolve in interface OperationArgumentResolverT - required type of the argumenttype - argument typenull