public static class NumericConverters.FloatToLongConverter extends BidirectionalConverter<C,D>
destinationType, mapperFacade, sourceType| Constructor and Description |
|---|
FloatToLongConverter(boolean truncate)
Constructs a new LongToIntegerConverter, with the configured
truncation behavior.
|
| Modifier and Type | Method and Description |
|---|---|
Float |
convertFrom(Long source,
Type<Float> destinationType,
MappingContext context) |
Long |
convertTo(Float source,
Type<Long> destinationType,
MappingContext context) |
boolean |
equals(Object o) |
BidirectionalConverter<D,C> |
reverse() |
String |
toString() |
canConvert, convertgetAType, getBType, hashCode, setMapperFacadeclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetMapperFacadegetAType, getBTypepublic FloatToLongConverter(boolean truncate)
truncate - specifies whether the converter should perform truncation;
if false, an ArithmeticException is thrown for a value
which is too large or too small to be accurately
represented by the smaller of the two typespublic Long convertTo(Float source, Type<Long> destinationType, MappingContext context)
convertTo in class BidirectionalConverter<Float,Long>public Float convertFrom(Long source, Type<Float> destinationType, MappingContext context)
convertFrom in class BidirectionalConverter<Float,Long>public BidirectionalConverter<D,C> reverse()
reverse in class BidirectionalConverter<C,D>public String toString()
toString in class BidirectionalConverter<C,D>public boolean equals(Object o)
equals in class CustomConverter<Object,Object>Copyright © 2019 Glasnost. All rights reserved.