package com.google.common.collect;
//list分区重组:splitParams要重组的数据,maxPartitionSize每个数组的大小
List<List> l = Lists.partition(splitParams, maxPartitionSize);
package java.lang;
//自动返回组装结果
String.format("x%s", "返回结果"");
//返回值:"x放回结果"
package org.apache.commons.lang.builder;
//tostring的常用的。反射方法。不用自己每加一个字段就加一个。
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
package org.apache.commons.lang.builder#ToStringStyle.SHORT_PREFIX_STYLE
package org.apache.commons.lang.math.NumberUtils
String xx;
//如果失败了给默认值defaultValue
long id = NumberUtils.toLong(xx,defaultValue);