com.tuyang.beanutils.internal.convertors.EnumToEnumArrayConvertor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BeanUtils Show documentation
Show all versions of BeanUtils Show documentation
BeanUtils library is a Java bean copy utility with powerful functionality and high performance.
package com.tuyang.beanutils.internal.convertors;
import com.tuyang.beanutils.BeanCopyConvertor;
@SuppressWarnings("rawtypes")
public class EnumToEnumArrayConvertor implements BeanCopyConvertor {
@Override
public Enum[] convertTo(Enum[] object) {
if( object == null )
return null;
return object.clone();
}
}