Deprecated API

Contents

Deprecated Classes

Enum
Replaced by org.apache.commons.lang.enums.Enum and will be removed in version 3.0.
EnumUtils
Replaced by org.apache.commons.lang.enums.EnumUtils and will be removed in version 3.0.
NumberRange
Use one of the Range classes in org.apache.commons.lang.math.
NumberUtils
Moved to org.apache.commons.lang.math.
ValuedEnum
Replaced by org.apache.commons.lang.enums.ValuedEnum and will be removed in version 3.0.

Deprecated Fields

org.apache.commons.lang.time.DateUtils.MILLIS_IN_SECOND
Use MILLIS_PER_SECOND.
org.apache.commons.lang.time.DateUtils.MILLIS_IN_MINUTE
Use MILLIS_PER_MINUTE.
org.apache.commons.lang.time.DateUtils.MILLIS_IN_HOUR
Use MILLIS_PER_HOUR.
org.apache.commons.lang.time.DateUtils.MILLIS_IN_DAY
Use MILLIS_PER_DAY.

Deprecated Methods

org.apache.commons.lang.CharSetUtils.evaluateSet(String[])
org.apache.commons.lang.CharSetUtils.translate(String,String,String)
org.apache.commons.lang.math.NumberUtils.stringToInt(String)
Use toInt(String) This method will be removed in Commons Lang 3.0
org.apache.commons.lang.math.NumberUtils.stringToInt(String,int)
Use toInt(String,int) This method will be removed in Commons Lang 3.0
org.apache.commons.lang.builder.ReflectionToStringBuilder.toString(Object,ToStringStyle,boolean,Class)
org.apache.commons.lang.builder.StandardToStringStyle.isShortClassName()
Use isUseShortClassName() Method will be removed in Commons Lang 3.0.
org.apache.commons.lang.builder.StandardToStringStyle.setShortClassName(boolean)
Use setUseShortClassName(boolean) Method will be removed in Commons Lang 3.0.
org.apache.commons.lang.StringUtils.clean(String)
Use the clearer named trimToEmpty(String).
org.apache.commons.lang.StringUtils.getNestedString(String,String)
Use the better named substringBetween(String,String).
org.apache.commons.lang.StringUtils.getNestedString(String,String,String)
org.apache.commons.lang.StringUtils.concatenate(Object[])
Use the better named join(Object[]) instead.
org.apache.commons.lang.StringUtils.deleteSpaces(String)
Use the better localized deleteWhitespace(String).
org.apache.commons.lang.StringUtils.overlayString(String,String,int,int)
Use better named overlay(String,String,int,int) instead.
org.apache.commons.lang.StringUtils.chompLast(String)
Use chomp(String) instead.
org.apache.commons.lang.StringUtils.chompLast(String,String)
org.apache.commons.lang.StringUtils.getChomp(String,String)
Use substringAfterLast(String,String) instead (although this doesn't include the separator) Method will be removed in Commons Lang 3.0.
org.apache.commons.lang.StringUtils.prechomp(String,String)
org.apache.commons.lang.StringUtils.getPrechomp(String,String)
Use substringBefore(String,String) instead (although this doesn't include the separator).
org.apache.commons.lang.StringUtils.chopNewline(String)
Use chomp(String) instead.
org.apache.commons.lang.StringUtils.escape(String)
Use StringEscapeUtils.escapeJava(String) This method will be removed in Commons Lang 3.0
org.apache.commons.lang.StringUtils.capitalise(String)
Use the standardly named capitalize(String).
org.apache.commons.lang.StringUtils.uncapitalise(String)
Use the standardly named uncapitalize(String).
org.apache.commons.lang.StringUtils.capitaliseAllWords(String)
Use the relocated WordUtils.capitalize(String).
org.apache.commons.lang.StringUtils.reverseDelimitedString(String,String)
org.apache.commons.lang.SystemUtils.getJavaVersion()
Use JAVA_VERSION_FLOAT instead.
org.apache.commons.lang.builder.ToStringStyle.isShortClassName()
Use isUseShortClassName() Method will be removed in Commons Lang 3.0.
org.apache.commons.lang.builder.ToStringStyle.setShortClassName(boolean)
Use setUseShortClassName(boolean) Method will be removed in Commons Lang 3.0.

Deprecated Constructors

org.apache.commons.lang.builder.ReflectionToStringBuilder.ReflectionToStringBuilder(Object,ToStringStyle,StringBuffer,Class,boolean)

Copyright © 2001-2005 - Apache Software Foundation