public static Boolean getType(Object o) { String type = o.getClass().toString(); System.out.println(type); type = type.substring(type.lastIndexOf('.') + 1, type.length()); if("Long".equals(type)) { return true; } return false; }
判断是否为long类型
最新推荐文章于 2023-06-28 17:54:05 发布