public abstract class StringToIterableConverter<T extends Iterable> extends Object implements StringToMultiValueConverter
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 构造器和说明 |
|---|
StringToIterableConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Class<String> type,
Class<?> multiValueType)
Accept the source type and target type or not
|
Object |
convert(String[] segments,
int size,
Class<?> multiValueType,
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 final Object convert(String[] segments, int size, Class<?> multiValueType, Class<?> elementType)
StringToMultiValueConverterconvert 在接口中 StringToMultiValueConvertersegments - the String array of contentsize - the size of multiple value objectmultiValueType - the target typeelementType - the element typepublic final int getPriority()
PrioritizedgetPriority 在接口中 PrioritizedPrioritized.NORMAL_PRIORITYCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.