public final class UnidirectionalConverterPairFirst<DATA1TYPE,DATA2TYPE> extends Object implements IUnidirectionalConverter<IReadonlyPair<DATA1TYPE,DATA2TYPE>,DATA1TYPE>
IReadonlyPair.| Constructor and Description |
|---|
UnidirectionalConverterPairFirst() |
| Modifier and Type | Method and Description |
|---|---|
DATA1TYPE |
convert(IReadonlyPair<DATA1TYPE,DATA2TYPE> aPair)
Convert the passed source object to the destination type.
|
static <FIRST,SECOND> |
create()
Get a generic data converter that extracts the first element out of a pair.
|
@Nullable public DATA1TYPE convert(@Nullable IReadonlyPair<DATA1TYPE,DATA2TYPE> aPair)
IUnidirectionalConverterconvert in interface IUnidirectionalConverter<IReadonlyPair<DATA1TYPE,DATA2TYPE>,DATA1TYPE>aPair - The source object to be converted. No null or non-
null constraint possible.null or non- null
constraint possible.@Nonnull public static <FIRST,SECOND> UnidirectionalConverterPairFirst<FIRST,SECOND> create()
FIRST - First type of the pairSECOND - Second type of the pair.Copyright © 2006–2015 phloc systems. All rights reserved.