public static class NumericConverters.BigIntegerToLongConverter extends BidirectionalConverter<C,D>
BigIntegerdestinationType, mapperFacade, sourceType| Constructor and Description |
|---|
BigIntegerToLongConverter(boolean truncate)
Constructs a new BigIntegerToLongConverter, with the configured
truncation behavior.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
convertFrom(Long source,
Type<BigInteger> destinationType,
MappingContext context) |
Long |
convertTo(BigInteger 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 BigIntegerToLongConverter(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 java.lang.Longpublic Long convertTo(BigInteger source, Type<Long> destinationType, MappingContext context)
convertTo in class BidirectionalConverter<BigInteger,Long>public BigInteger convertFrom(Long source, Type<BigInteger> destinationType, MappingContext context)
convertFrom in class BidirectionalConverter<BigInteger,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.