public class BooleanTransformer extends Object implements PropertyTransformer<Boolean>
TransformationException is
thrown| Modifier and Type | Field and Description |
|---|---|
static BooleanTransformer |
SHARED_INSTANCE
Shared instance of this transformer, it's thread safe so no need to
create multiple instances
|
| Constructor and Description |
|---|
BooleanTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
transform(String value,
Field field)
Transforms string to boolean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final BooleanTransformer SHARED_INSTANCE
public Boolean transform(String value, Field field) throws TransformationException
transform in interface PropertyTransformer<Boolean>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something goes wrongCopyright © 2014–2015. All rights reserved.