# Deprecated API

## Contents

- Interfaces
- Classes
- Fields
- Methods
- Constructors

- Deprecated Interfaces
  Interface
  Description
  org.apache.commons.text.Builder
  Use :@link Supplier}.

- Deprecated Classes
  Class
  Description
  org.apache.commons.text.StrBuilder
  Deprecated as of 1.3, use `TextStringBuilder` instead. This class will be removed in 2.0.
  org.apache.commons.text.StrLookup
  Deprecated as of 1.3, use `StringLookupFactory` instead. This class will be removed in 2.0.
  org.apache.commons.text.StrMatcher
  Deprecated as of 1.3, use `StringMatcherFactory` instead. This class will be removed in 2.0.
  org.apache.commons.text.StrSubstitutor
  Deprecated as of 1.3, use `StringSubstitutor` instead. This class will be removed in 2.0.
  org.apache.commons.text.StrTokenizer
  Deprecated as of 1.3, use `StringTokenizer` instead. This class will be removed in 2.0.

- Deprecated Fields
  Field
  Description
  org.apache.commons.text.similarity.JaroWinklerDistance.INDEX_NOT_FOUND
  Deprecated as of 1.7. This constant will be removed in 2.0.

- Deprecated Methods
  Method
  Description
  org.apache.commons.text.lookup.StringLookupFactory.base64StringLookup()
  Use `StringLookupFactory.base64DecoderStringLookup()`.
  org.apache.commons.text.numbers.DoubleFormat.Builder.build()
  Use `DoubleFormat.Builder.get()`.
  org.apache.commons.text.RandomStringGenerator.Builder.build()
  Use `RandomStringGenerator.Builder.get()`.
  org.apache.commons.text.similarity.JaroWinklerDistance.matches(CharSequence, CharSequence)
  Deprecated as of 1.7. This method will be removed in 2.0, and moved to a Jaro Winkler similarity class. TODO see TEXT-104.
  org.apache.commons.text.similarity.LongestCommonSubsequence.logestCommonSubsequence(CharSequence, CharSequence)
  Deprecated as of 1.2 due to a typo in the method name. Use `LongestCommonSubsequence.longestCommonSubsequence(CharSequence, CharSequence)` instead. This method will be removed in 2.0.
  org.apache.commons.text.similarity.LongestCommonSubsequence.longestCommonSubstringLengthArray(CharSequence, CharSequence)
  Deprecated as of 1.10. A more efficient implementation for calculating LCS is now available. Use `LongestCommonSubsequence.longestCommonSubsequence(CharSequence, CharSequence)` instead to directly calculate the LCS. This method will be removed in 2.0.
  org.apache.commons.text.StrBuilder.build()
  Use `StrBuilder.get()`.
  org.apache.commons.text.TextStringBuilder.build()
  Use `TextStringBuilder.get()`.
  org.apache.commons.text.WordUtils.isDelimiter(char, char[])
  as of 1.2 and will be removed in 2.0
  org.apache.commons.text.WordUtils.isDelimiter(int, char[])
  as of 1.2 and will be removed in 2.0

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.text.similarity.LevenshteinDetailedDistance()
  Use `LevenshteinDetailedDistance.getDefaultInstance()`.
  org.apache.commons.text.similarity.LevenshteinDistance()
  Use `LevenshteinDistance.getDefaultInstance()`.