CaseFormat
来源:互联网 发布:php web 文件上传 编辑:程序博客网 时间:2024/05/22 15:20
import com.google.common.base.CaseFormat;
/**
* @author Andypan
* @CaseFormatTest.java
* @{describe}
* @date 2017年7月26日 下午4:44:01
*/
public class CaseFormatTest
{
public static void main(String[] args)
{
String a = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "CONSTANT_NAME"); // returns
String b = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, "constantName"); // returns
// "constantName"
System.out.println(a);
System.out.println(b);
}
}
阅读全文
0 0
- CaseFormat
- Guava base -- CaseFormat
- guava中String的CaseFormat
- JavaScript-定时器的使用之延时提示框
- Data Binding,View基本属性赋值
- 日处理20亿数据,实时用户行为服务系统架构实践
- 关于vs老版本转换新版本的一些问题
- 【Go】 Cron定时任务用法
- CaseFormat
- 构造器
- UGUI 绘制自定义折线图
- 程序举例
- spf13-vim 解决.vimrc.local中某些命令无法执行(例如TAB设置)
- Analysis of Drifting Dynamics with Neural Network Hidden Markov Models
- 将excel数据导入到数据库中
- 抽象类和接口
- 并查集