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

org.atemsource.atem.utility.transform.impl.converter.EnumToStringConverterFactory Maven / Gradle / Ivy

package org.atemsource.atem.utility.transform.impl.converter;

import org.atemsource.atem.api.type.Type;
import org.atemsource.atem.utility.transform.api.Converter;
import org.atemsource.atem.utility.transform.api.InternalConverterFactory;


public class EnumToStringConverterFactory implements InternalConverterFactory
{

	@Override
	public  Converter create(Type a)
	{
		if (Enum.class.isAssignableFrom(a.getJavaType()))
		{
			return (Converter) ConverterUtils.create(new EnumToStringConverter((Class) a.getJavaType()));
		}
		else
		{
			return null;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy