net.sf.morph.transform
Interface ImpreciseTransformer
- All Superinterfaces:
- net.sf.composite.Component, Transformer
- All Known Implementing Classes:
- BaseToPrettyTextConverter, BeanToPrettyTextConverter, BooleanToTextConverter, ChainedTransformer, ContainerToPrettyTextConverter, DefaultToBooleanConverter, DefaultToTextConverter, NumberConverter, NumberToTextConverter, ObjectToPrettyTextConverter, ObjectToTextConverter, SimpleDelegatingTransformer, TextConverter, TimeToTextConverter, TypeChangingGraphTransformer
public interface ImpreciseTransformer
- extends Transformer
Defines a transformer whose operation may result in a loss of data precision.
- Since:
- Morph 1.1
- Author:
- mbenson
Method Summary |
boolean |
isImpreciseTransformation(java.lang.Class destinationClass,
java.lang.Class sourceClass)
Learn whether the specified conversion might yield an imprecise result. |
isImpreciseTransformation
boolean isImpreciseTransformation(java.lang.Class destinationClass,
java.lang.Class sourceClass)
- Learn whether the specified conversion might yield an imprecise result.
- Parameters:
destinationClass
- the destination type for the transformationsourceClass
- the source type for the transformation
- Returns:
- boolean
true
if the transformation might yield an
imprecise result or
false
, otherwise
Copyright © 2004-2008.