public class ConversionComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Class>
Constructor and Description |
---|
ConversionComparator(java.lang.Class fromType) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Class toType_a,
java.lang.Class toType_b)
Evaluates two types, to see which one is nearest to the from type.
|
boolean |
isConversionPossible(java.lang.Class toType)
Returns true if a coversion is possible to the given type.
|
public boolean isConversionPossible(java.lang.Class toType)
public int compare(java.lang.Class toType_a, java.lang.Class toType_b)
compare
in interface java.util.Comparator<java.lang.Class>
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.