DATATYPE - The data type to be convertedpublic final class UnidirectionalConverterIdentity<DATATYPE> extends Object implements IUnidirectionalConverterSameType<DATATYPE>
IUnidirectionalConverterSameType that uses
the input object as the output object.| Constructor and Description |
|---|
UnidirectionalConverterIdentity() |
| Modifier and Type | Method and Description |
|---|---|
DATATYPE |
convert(DATATYPE aInput)
Convert the passed source object to the destination type.
|
static <DATATYPE> UnidirectionalConverterIdentity<DATATYPE> |
create()
Get a converter instance that does not conversion at all.
|
@Nullable public DATATYPE convert(@Nullable DATATYPE aInput)
IUnidirectionalConverterconvert in interface IUnidirectionalConverter<DATATYPE,DATATYPE>aInput - The source object to be converted. No null or non-
null constraint possible.null or non- null
constraint possible.@Nonnull public static <DATATYPE> UnidirectionalConverterIdentity<DATATYPE> create()
DATATYPE - The type of input and output objectnull converter object.Copyright © 2006–2015 phloc systems. All rights reserved.