public class NullToAnyTransform extends Transform
Modifier and Type | Field and Description |
---|---|
static NullToAnyTransform |
INSTANCE |
Constructor and Description |
---|
NullToAnyTransform(Class<?> targetType) |
Modifier and Type | Method and Description |
---|---|
Class |
getSourceType()
Type of the incoming value.
|
Class |
getTargetType()
Type of the outgoing value.
|
Object |
transformDirect(Object value)
This method transforms a value of the source type into a value
of the target type.
|
getDescription, getDisplayName, getSourceTypeName, getTargetTypeName, isExplicit, toString, transform
public static final NullToAnyTransform INSTANCE
public NullToAnyTransform(Class<?> targetType)
public Class getSourceType()
getSourceType
in class Transform
public Class getTargetType()
getTargetType
in class Transform
public Object transformDirect(Object value) throws TransformationException
transformDirect
in class Transform
value
- Incoming value - IntegerTransformationException
- if value is an incorrect input type or
the transformation failsCopyright © 2019. All rights reserved.