Package com.alibaba.toolkit.util.typeconvert

Examples of com.alibaba.toolkit.util.typeconvert.Converter


     * @param targetType Ŀ������
     *
     * @return ����ǰλ��ת����ָ��<code>targetType</code>��<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                FlagSet flagSet    = (FlagSet) value;
                Class   targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here


     * @param targetType Ŀ������
     *
     * @return ����ǰ<code>Enum</code>ת����ָ��<code>targetType</code>��<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                Enum  enumObj       = (Enum) value;
                Class targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

     *
     * @param targetType 目标类型
     * @return 将当前位集转换成指定<code>targetType</code>的<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                FlagSet flagSet = (FlagSet) value;
                Class targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

     * @param targetType 目标类型
     * @return 将当前<code>Enum</code>转换成指定<code>targetType</code>的
     *         <code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                Enum enumObj = (Enum) value;
                Class targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

     * @param targetType Ŀ������
     *
     * @return ����ǰ<code>Enum</code>ת����ָ��<code>targetType</code>��<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                Enum  enumObj       = (Enum) value;
                Class targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

     * @param targetType Ŀ������
     *
     * @return ����ǰλ��ת����ָ��<code>targetType</code>��<code>Converter</code>
     */
    public Converter getConverter(Class targetType) {
        return new Converter() {
            public Object convert(Object value, ConvertChain chain) {
                FlagSet flagSet    = (FlagSet) value;
                Class   targetType = chain.getTargetType();

                if (String.class.equals(targetType)) {
View Full Code Here

TOP

Related Classes of com.alibaba.toolkit.util.typeconvert.Converter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.