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

cn.featherfly.hammer.mapping.ClassNameUnderlineConversion Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version

package cn.featherfly.hammer.mapping;

import cn.featherfly.common.lang.WordUtils;
import cn.featherfly.hammer.mapping.ClassNameConversion;

/**
 * 

* ClassNameUnderlineConversion use _ join type every word. ClassNameMapping as * class_name_mapping *

* * @author zhongj * @since 0.1.0 * @version 0.1.0 */ public class ClassNameUnderlineConversion implements ClassNameConversion { /** * {@inheritDoc} */ @Override public String getMappingName(Class type) { return WordUtils.addSignBeforeUpper(type.getSimpleName(), '_', true); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy