common-lang

 

common-lang (2.1)

ArrayUtils

常量中包含了基本类型(及其相对应类)的空数组。

提供向数组增加元素(包括增加单个元素或是整个数组),删除元素,翻转元素排列次序

克隆数组(基本类型)

查找数组中的元素(是否包含,返回索引)

获得数组长度(null安全,返回为0)

数组是否为空,数组是否相等,长度是否相等,元素类型是否相同,

基本类型对应类数组转换成基本类型数组

转成字符串

BooleanUtils

Boolean的转换(可转成int,String)

 

CharUtils

针对Char的工具类包括判断是不是ASCII字符,是不是控制符可打印与否,转成整形

ClassUtils

获得包名,获得类的所有超类。

RandomStringUtils

随机字符串生成,可生成数字串,也可生成Ascii范围的字串

StringEscapeUtils

编码/解码针对xml/html/sql/javascript/java(主要是转义标记符号等)

StringUtils

String的增强。类似vb的函数。截断、查找、替换、判断空、大小写、合并、分割,反写,对比

SerializationUtils

序列化工具类,将类转序列或反序列

SystemUtils

系统工具类,判断JRE版本,判断操作系统,判断字体(AWT),获得JAVA_HOME(及相关的所有环境变量),操作系统版本,时区、当前用户名,获得用户文件夹

Validate

校验器,判断集合里面所有的对象是否是某类,判断集合里面所有对象都非空,判断集合是否为空,判断数组、Map或字符串是否为空

WordUtils

将一个字符串中的单词首字大写;根据提供的每行字数将一个字符串断行

ToStringBuilder

toString方法的增强类,可将对象转成字符串(除了打出引用地址还会打出所有属性)可设置显示的风格(ToStringStyle,抽象类,需继承实现后方可使用)

EqualsBuilder

相等判断,例如以下语句:

a = b == c

a = a && e == f

可转换成

a = new EqualsBuilder()

.append( b,c )

.append( e,f)

.isEquals();

HashCodeBuilder

获得哈希值

Enum

枚举型,看来会被5.0替代.

ExceptionUtils

对异常的常见操作,获得堆栈,异常抛出方法名,错误链中对象数(要这个干吗???)

RandomUtils

随机数据生成类,包括浮点,双精,布尔,整形,长整在内的随机数生成

NumberUtils

常用数字函数,最大值,最小值,字符串和数值转换

DateFormatUtils

格式化日期时间,支持默认格式(即常量格式)如下:

ISO8601 (包含时区和不包含时区)

SMTP数据头格式

DateUtils

日期工具类,对比日期,削去部分数据,没啥用…

FastDateFormat

SimpleDateFormat的线程安全版本,听说速度更快…

StopWatch

秒表,监控运行时间的常用工具.

common-beanutils (1.7)

BeanUtils

克隆一个对象甚至他自身并未实现克隆方法

复制一个对象的属性至另一个对象

复制一个对象的指定属性至另一个对象

将一个对象的所有属性都到一个Map

获得一个对象的一个数组属性

直接访问对象的Map类型的属性中的元素

将一个Map对象的键值复制到目标对象的相应属性

ConstructorUtils

从一个类获得其构造器

DynaBean

动态Bean。

Validator 1.1.4

看样子是从Struts里面剥离出来的,用用其工具类就OK了。其他的太繁琐。

CreditCardValidator

信用卡校验

DateValidator

日期校验,可根据给的日期模板(SimpleDateFormat)校验

EmailValidator

校验电子邮件,可以校验域名、用户名

GenericTypeValidator

将字符串转换成Int/Double/Float/Long/Date/Byte

GenericValidator

常用校验器(静态方法),包括:字符串是否为空或者为null,字符串是否为byte。是否为信用卡,是否为日期(根据模板),是否为浮点数,是否为电邮,是否为双精数,是否在数值范围(类型:浮点,双精,整,长整,端整,字节),是否为URL,是否符合正则表达式,字符串是否超长,数值是否超过指定值,字符串是否过短,数值是否低于指定值。

ISBNValidator

ISBN校验器

UrlValidator

URL校验器

Validator

校验器(需实例化),和资源文件关联

 

 

中文简介: commons-lang.jar、Apache Commons包中的一个,包含了一些数据类型工具类,是java.lang.*的扩展。必须使用的jar包。 Jar文件包含的类: META-INF/MANIFEST.MFMETA-INF/LICENSE.txtMETA-INF/NOTICE.txtorg.apache.commons.lang.ArrayUtils.class org.apache.commons.lang.BitField.class org.apache.commons.lang.BooleanUtils.class org.apache.commons.lang.CharEncoding.class org.apache.commons.lang.CharRange.class org.apache.commons.lang.CharSet.class org.apache.commons.lang.CharSetUtils.class org.apache.commons.lang.CharUtils.class org.apache.commons.lang.ClassUtils.class org.apache.commons.lang.Entities$ArrayEntityMap.class org.apache.commons.lang.Entities$BinaryEntityMap.class org.apache.commons.lang.Entities$EntityMap.class org.apache.commons.lang.Entities$HashEntityMap.class org.apache.commons.lang.Entities$LookupEntityMap.class org.apache.commons.lang.Entities$MapIntMap.class org.apache.commons.lang.Entities$PrimitiveEntityMap.class org.apache.commons.lang.Entities$TreeEntityMap.class org.apache.commons.lang.Entities.class org.apache.commons.lang.IllegalClassException.class org.apache.commons.lang.IncompleteArgumentException.class org.apache.commons.lang.IntHashMap$Entry.class org.apache.commons.lang.IntHashMap.class org.apache.commons.lang.LocaleUtils.class org.apache.commons.lang.NotImplementedException.class org.apache.commons.lang.NullArgumentException.class org.apache.commons.lang.NumberRange.class org.apache.commons.lang.NumberUtils.class org.apache.commons.lang.ObjectUtils$Null.class org.apache.commons.lang.ObjectUtils.class org.apache.commons.lang.RandomStringUtils.class org.apache.commons.lang.SerializationException.class org.apache.commons.lang.SerializationUtils.class org.apache.commons.lang.StringEscapeUtils.class org.apache.commons.lang.StringUtils.class org.apache.commons.lang.SystemUtils.class org.apache.commons.lang.UnhandledException.class org.apache.commons.lang.Validate.class org.apache.commons.lang.WordUtils.class org.apache.commons.lang.builder.CompareToBuilder.class org.apache.commons.lang.builder.EqualsBuilder.class org.apache.commons.lang.builder.HashCodeBuilder.class org.apache.commons.lang.builder.ReflectionToStringBuilder$1.class org.apache.commons.lang.builder.ReflectionToStringBuilder.class org.apache.commons.lang.builder.StandardToStringStyle.class org.apache.commons.lang.builder.ToStringBuilder.class org.apache.commons.lang.builder.ToStringStyle$DefaultToStringStyle.class org.apache.commons.lang.builder.ToStringStyle$MultiLineToStringStyle.class org.apache.commons.lang.builder.ToStringStyle$NoFieldNameToStringStyle.class org.apache.commons.lang.builder.ToStringStyle$ShortPrefixToStringStyle.class org.apache.commons.lang.builder.ToStringStyle$SimpleToStringStyle.class org.apache.commons.lang.builder.ToStringStyle.class org.apache.commons.lang.enum.Enum$Entry.class org.apache.commons.lang.enum.Enum.class org.apache.commons.lang.enum.EnumUtils.class org.apache.commons.lang.enum.ValuedEnum.class org.apache.commons.lang.enums.Enum$Entry.class org.apache.commons.lang.enums.Enum.class org.apache.commons.lang.enums.EnumUtils.class org.apache.commons.lang.enums.ValuedEnum.class org.apache.commons.lang.exception.ExceptionUtils.class org.apache.commons.lang.exception.Nestable.class org.apache.commons.lang.exception.NestableDelegate.class org.apache.commons.lang.exception.NestableError.class org.apache.commons.lang.exception.NestableException.class org.apache.commons.lang.exception.NestableRuntimeException.class org.apache.commons.lang.math.DoubleRange.class org.apache.commons.lang.math.FloatRange.class org.apache.commons.lang.math.Fraction.class org.apache.commons.lang.math.IntRange.class org.apache.commons.lang.math.JVMRandom.class org.apache.commons.lang.math.LongRange.class org.apache.commons.lang.math.NumberRange.class org.apache.commons.lang.math.NumberUtils.class org.apache.commons.lang.math.RandomUtils.class org.apache.commons.lang.math.Range.class org.apache.commons.lang.mutable.Mutable.class org.apache.commons.lang.mutable.MutableBoolean.class org.apache.commons.lang.mutable.MutableByte.class org.apache.commons.lang.mutable.MutableDouble.class org.apache.commons.lang.mutable.MutableFloat.class org.apache.commons.lang.mutable.MutableInt.class org.apache.commons.lang.mutable.MutableLong.class org.apache.commons.lang.mutable.MutableObject.class org.apache.commons.lang.mutable.MutableShort.class org.apache.commons.lang.text.CompositeFormat.class org.apache.commons.lang.text.StrBuilder$StrBuilderReader.class org.apache.commons.lang.text.StrBuilder$StrBuilderTokenizer.class org.apache.commons.lang.text.StrBuilder$StrBuilderWriter.class org.apache.commons.lang.text.StrBuilder.class org.apache.commons.lang.text.StrLookup$MapStrLookup.class org.apache.commons.lang.text.StrLookup.class org.apache.commons.lang.text.StrMatcher$CharMatcher.class org.apache.commons.lang.text.StrMatcher$CharSetMatcher.class org.apache.commons.lang.text.StrMatcher$NoMatcher.class org.apache.commons.lang.text.StrMatcher$StringMatcher.class org.apache.commons.lang.text.StrMatcher$TrimMatcher.class org.apache.commons.lang.text.StrMatcher.class org.apache.commons.lang.text.StrSubstitutor.class org.apache.commons.lang.text.StrTokenizer.class org.apache.commons.lang.time.DateFormatUtils.class org.apache.commons.lang.time.DateUtils$DateIterator.class org.apache.commons.lang.time.DateUtils.class org.apache.commons.lang.time.DurationFormatUtils$Token.class org.apache.commons.lang.time.DurationFormatUtils.class org.apache.commons.lang.time.FastDateFormat$CharacterLiteral.class org.apache.commons.lang.time.FastDateFormat$NumberRule.class org.apache.commons.lang.time.FastDateFormat$PaddedNumberField.class org.apache.commons.lang.time.FastDateFormat$Pair.class org.apache.commons.lang.time.FastDateFormat$Rule.class org.apache.commons.lang.time.FastDateFormat$StringLiteral.class org.apache.commons.lang.time.FastDateFormat$TextField.class org.apache.commons.lang.time.FastDateFormat$TimeZoneDisplayKey.class org.apache.commons.lang.time.FastDateFormat$TimeZoneNameRule.class org.apache.commons.lang.time.FastDateFormat$TimeZoneNumberRule.class org.apache.commons.lang.time.FastDateFormat$TwelveHourField.class org.apache.commons.lang.time.FastDateFormat$TwentyFourHourField.class org.apache.commons.lang.time.FastDateFormat$TwoDigitMonthField.class org.apache.commons.lang.time.FastDateFormat$TwoDigitNumberField.class org.apache.commons.lang.time.FastDateFormat$TwoDigitYearField.class org.apache.commons.lang.time.FastDateFormat$UnpaddedMonthField.class org.apache.commons.lang.time.FastDateFormat$UnpaddedNumberField.class org.apache.commons.lang.time.FastDateFormat.class org.apache.commons.lang.time.StopWatch.class
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值