public abstract class StringToIterableConverter<T extends Iterable> extends Object implements StringToMultiValueConverter
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
StringToIterableConverter() |
| Modifier and Type | Method and Description |
|---|---|
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertconvertIfPossible, find, getSourceTypecompareTopublic boolean accept(Class<String> type, Class<?> multiValueType)
MultiValueConverteraccept in interface MultiValueConverter<String>type - the source typemultiValueType - the multi-value typetrue, or falsepublic final Object convert(String[] segments, int size, Class<?> multiValueType, Class<?> elementType)
StringToMultiValueConverterconvert in interface StringToMultiValueConvertersegments - the String array of contentsize - the size of multiple value objectmultiValueType - the target typeelementType - the element typepublic final int getPriority()
PrioritizedgetPriority in interface PrioritizedPrioritized.NORMAL_PRIORITYCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.