Java Object Array Convert To convertObjectToBean(Object obj, Class clazz)

Here you can find the source of convertObjectToBean(Object obj, Class clazz)

Description

convert Object To Bean

License

Apache License

Declaration

@SuppressWarnings("unchecked")
public static <T> T convertObjectToBean(Object obj, Class<T> clazz) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    @SuppressWarnings("unchecked")
    public static <T> T convertObjectToBean(Object obj, Class<T> clazz) {
        if (obj != null && clazz.isInstance(obj)) {
            return (T) obj;
        }/*from  w  ww . j  a  va 2  s .c om*/
        return null;
    }
}

Related

  1. convertObject(final Object obj, final Class clazz)
  2. convertObjectArrayToByte(Object[] array)
  3. convertObjectGUIToByteString(byte[] objectGUID)
  4. convertObjectToBoolean(Object value)
  5. convertObjectToInt(Object value)
  6. convertObjectToIntegerIfNecessary(final Object configValue)
  7. convertObjectToSqlSyntaxe(Object value)