public class ArrayTransformer<T> extends Object implements PropertyTransformer<T[]>
| Modifier and Type | Field and Description |
|---|---|
static ArrayTransformer<Object> |
SHARED_INSTANCE |
| Constructor and Description |
|---|
ArrayTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
parse(String value) |
T[] |
transform(String value,
Field field)
This method actually transforms value to object instance
|
static boolean |
validBrackets(String v)
Checks if String v is parsable by
ArrayTransformer |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final ArrayTransformer<Object> SHARED_INSTANCE
public T[] transform(String value, Field field) throws TransformationException
transform in interface PropertyTransformer<T[]>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something went wrongPropertyTransformer.transform(java.lang.String,
java.lang.reflect.Field)public static final boolean validBrackets(String v)
ArrayTransformerv - String to check{@link - IllegalArgumentException} of v is not parsableCopyright © 2014–2015. All rights reserved.