From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- .../carbonado/util/ConversionComparator.html | 302 +++++++++++++++++++++ 1 file changed, 302 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/util/ConversionComparator.html (limited to 'apidocs/com/amazon/carbonado/util/ConversionComparator.html') diff --git a/apidocs/com/amazon/carbonado/util/ConversionComparator.html b/apidocs/com/amazon/carbonado/util/ConversionComparator.html new file mode 100644 index 0000000..372fa56 --- /dev/null +++ b/apidocs/com/amazon/carbonado/util/ConversionComparator.html @@ -0,0 +1,302 @@ + + + + + + +ConversionComparator (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.util
+

Class ConversionComparator

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.Comparator<java.lang.Class>
    +
    +
    +
    +
    public class ConversionComparator
    +extends java.lang.Object
    +implements java.util.Comparator<java.lang.Class>
    +
    Compares type conversions, finding the one that is nearest.
    +
    Since:
    +
    1.2
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ConversionComparator(java.lang.Class fromType) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      intcompare(java.lang.Class toType_a, + java.lang.Class toType_b) +
      Evaluates two types, to see which one is nearest to the from type.
      +
      booleanisConversionPossible(java.lang.Class toType) +
      Returns true if a coversion is possible to the given type.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.util.Comparator

        +equals
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConversionComparator

        +
        public ConversionComparator(java.lang.Class fromType)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isConversionPossible

        +
        public boolean isConversionPossible(java.lang.Class toType)
        +
        Returns true if a coversion is possible to the given type.
        +
      • +
      + + + +
        +
      • +

        compare

        +
        public 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. + Return <0 if "a" is nearest, 0 if both are equally good, + >0 if "b" is nearest.
        +
        +
        Specified by:
        +
        compare in interface java.util.Comparator<java.lang.Class>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3