All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unidal.converter.basic.ObjectConverter Maven / Gradle / Ivy

The newest version!
package org.unidal.converter.basic;

import java.lang.reflect.Type;

import org.unidal.converter.Converter;
import org.unidal.converter.ConverterException;

public class ObjectConverter implements Converter {
   public boolean canConvert(Type fromType, Type targetType) {
      return true;
   }

   public Object convert(Object from, Type targetType) throws ConverterException {
      return from;
   }

   public Type getTargetType() {
      return Object.class;
   }
}