public class StringToArrayConverter extends Object implements StringToMultiValueConverter
String to array-type objectCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 构造器和说明 |
|---|
StringToArrayConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Class<String> type,
Class<?> multiValueType)
Accept the source type and target type or not
|
Object |
convert(String[] segments,
int size,
Class<?> targetType,
Class<?> elementType)
Convert the segments to multiple value object
|
int |
getPriority()
Get the priority
|
convertconvertIfPossible, find, getSourceTypecompareTopublic boolean accept(Class<String> type, Class<?> multiValueType)
MultiValueConverteraccept 在接口中 MultiValueConverter<String>type - the source typemultiValueType - the multi-value typetrue, or falsepublic Object convert(String[] segments, int size, Class<?> targetType, Class<?> elementType)
StringToMultiValueConverterconvert 在接口中 StringToMultiValueConvertersegments - the String array of contentsize - the size of multiple value objecttargetType - the target typeelementType - the element typepublic int getPriority()
PrioritizedgetPriority 在接口中 PrioritizedPrioritized.NORMAL_PRIORITYCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.