Class NullSafeBiMapper<F,T>
- java.lang.Object
-
- nl.rkuijt.mapperlib.mapper.single.nullsafe.NullSafeMapper<F,T>
-
- nl.rkuijt.mapperlib.mapper.single.nullsafe.NullSafeBiMapper<F,T>
-
- Type Parameters:
F- the type to map from.T- the type to map to.
- Direct Known Subclasses:
NullSafeMultiBiMapper
public abstract class NullSafeBiMapper<F,T> extends NullSafeMapper<F,T> implements BiMapper<F,T>
Null-safe bidirectional type mapper.- See Also:
NullSafeMapper,BiMapper
-
-
Constructor Summary
Constructors Constructor Description NullSafeBiMapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract FnonNullReverse(T input)Maps thetotype to thefromtype.Freverse(T input)Maps thetotype to thefromtype.-
Methods inherited from class nl.rkuijt.mapperlib.mapper.single.nullsafe.NullSafeMapper
from, nonNullFrom
-
-
-
-
Method Detail
-
reverse
public final F reverse(T input)
Maps thetotype to thefromtype. Does not pass null references to the mapping method.
-
nonNullReverse
protected abstract F nonNullReverse(T input)
Maps thetotype to thefromtype.- Parameters:
input-toobject.- Returns:
fromobject.- See Also:
BiMapper.reverse(Object)
-
-