public class UrlParameterCreatorHelper extends Object
Constructor and Description |
---|
UrlParameterCreatorHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
toUrlParameterCreator(Class<T> interfaceType) |
static <T> T |
toUrlParameterCreator(Class<T> interfaceType,
BiFunction<Method,Object[],Object> ifNotString,
BiFunction<Method,Object[],Object> ifIgnore)
将一个接口中的方法转化为路径参数类型
|
public static <T> T toUrlParameterCreator(Class<T> interfaceType, BiFunction<Method,Object[],Object> ifNotString, BiFunction<Method,Object[],Object> ifIgnore)
interfaceType
- 接口类型ifNotString
- 如果返回值不是字符串ifIgnore
- 如果方法被忽略public static <T> T toUrlParameterCreator(Class<T> interfaceType)
interfaceType
- 接口类型toUrlParameterCreator(Class, BiFunction, BiFunction)
Copyright © 2020. All rights reserved.