![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
dc_user
向往成为大牛
展开
-
对象拷贝工具类(深拷贝)
public class CloneUtil { private CloneUtil() { throw new AssertionError(); } public static <T extends Serializable> T clone(T object) throws IOException, Class...原创 2019-10-25 13:43:53 · 928 阅读 · 0 评论 -
byte[]与十六进制字符串的转换
/** * byte[]与16进制字符串相互转换 * */public class BytesHexStrTranslate { private static final char[] HEX_CHAR = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e...转载 2018-06-21 13:46:47 · 5565 阅读 · 0 评论 -
截取字符串(去掉前n个字符)
public static String truncateHeadString(String origin, int count) { if (origin == null || origin.length() < count) { return null; } char[] arr = origin.toCharArray(); ch...原创 2018-06-15 12:20:30 · 20786 阅读 · 1 评论