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 --- apidocs/com/amazon/carbonado/util/Converter.html | 453 +++++++++++++++++++++++ 1 file changed, 453 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/util/Converter.html (limited to 'apidocs/com/amazon/carbonado/util/Converter.html') diff --git a/apidocs/com/amazon/carbonado/util/Converter.html b/apidocs/com/amazon/carbonado/util/Converter.html new file mode 100644 index 0000000..aeb09ee --- /dev/null +++ b/apidocs/com/amazon/carbonado/util/Converter.html @@ -0,0 +1,453 @@ + + + + + + +Converter (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.util
+

Class Converter

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class Converter
    +extends java.lang.Object
    +
    General purpose type converter. Custom conversions are possible by supplying + an abstract subclass which has public conversion methods whose names begin + with "convert". Each conversion method takes a single argument and returns a + value.
    +
    Since:
    +
    1.2
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Converter() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static <C extends Converter
      C
      build(java.lang.Class<C> converterType) 
      static <C extends Converter
      java.lang.Class<? extends C>
      buildClass(java.lang.Class<C> converterType) 
      protected java.lang.IllegalArgumentExceptionconversionNotSupported(java.lang.Object fromValue, + java.lang.Class fromType, + java.lang.Class toType) 
      abstract <T> Tconvert(boolean from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(byte from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(char from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(double from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(float from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(int from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(long from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(java.lang.Object from, + java.lang.Class<T> toType) 
      abstract <T> Tconvert(short from, + java.lang.Class<T> toType) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

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

      Constructor Detail

      + + + +
        +
      • +

        Converter

        +
        public Converter()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        build

        +
        public static <C extends Converter> C build(java.lang.Class<C> converterType)
        +
        Parameters:
        converterType - type of converter to generate
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if converter doesn't a no-arg constructor
        +
      • +
      + + + +
        +
      • +

        buildClass

        +
        public static <C extends Converter> java.lang.Class<? extends C> buildClass(java.lang.Class<C> converterType)
        +
        Parameters:
        converterType - type of converter to generate
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(java.lang.Object from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(byte from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(short from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(int from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(long from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(float from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(double from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(boolean from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public abstract <T> T convert(char from,
        +            java.lang.Class<T> toType)
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if conversion is not supported
        +
      • +
      + + + +
        +
      • +

        conversionNotSupported

        +
        protected java.lang.IllegalArgumentException conversionNotSupported(java.lang.Object fromValue,
        +                                                        java.lang.Class fromType,
        +                                                        java.lang.Class toType)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

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

+ + -- cgit v1.2.3