public final class UnidirectionalConverterPairSecond<DATA1TYPE,DATA2TYPE> extends Object implements IUnidirectionalConverter<IReadonlyPair<DATA1TYPE,DATA2TYPE>,DATA2TYPE>
IReadonlyPair.| Constructor and Description |
|---|
UnidirectionalConverterPairSecond() |
| Modifier and Type | Method and Description |
|---|---|
DATA2TYPE |
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 second element out of a
pair.
|
@Nullable public DATA2TYPE convert(@Nullable IReadonlyPair<DATA1TYPE,DATA2TYPE> aPair)
IUnidirectionalConverterconvert in interface IUnidirectionalConverter<IReadonlyPair<DATA1TYPE,DATA2TYPE>,DATA2TYPE>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> UnidirectionalConverterPairSecond<FIRST,SECOND> create()
FIRST - First type of the pairSECOND - Second type of the pair.Copyright © 2006–2014 phloc systems. All rights reserved.