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

com.artfii.fluentsql.core.Spell Maven / Gradle / Ivy

There is a newer version: 0.0.17.10
Show newest version
package com.artfii.fluentsql.core;

/**
 * Func : 字段的拼写风格
 *
 * @author: leeton on 2019/6/18.
 */
public enum Spell {
    UNDERLINE,CAMEL;
    public static String getAs(String as, Spell spell, String underline, String camel) {
        if (null != as && !"".equals(as)) {
            return as;
        }
        if (Spell.UNDERLINE == spell) {
            return underline;
        }
        if (Spell.CAMEL == spell) {
            return camel;
        }
        return "";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy