Questions tagged [apache-commons-lang]

The standard Java libraries fail to provide enough methods for manipulation of its core classes. Apache Commons Lang provides these extra methods.

Apache Commons Lang provides a host of helper utilities for the java.lang API, notably string manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System properties. Additionally it contains basic enhancements to java.util.Date and a series of utilities dedicated to help with building methods, such as hashCode(), toString() and equals().

Note that Lang 3.0 (and subsequent versions) use a different package (org.apache.commons.lang3) than the previous versions (org.apache.commons.lang), allowing it to be used at the same time as an earlier version.

Official Website: http://commons.apache.org/lang/

Useful Links:

Related Tags:

80 questions
-1
votes
3 answers

Why apache commons lang is "lang", does lang stand for language?

I use apache commons lang lib as my favorite 3rd party lib for many years, but I don't really understand what's the meaning of "lang" in its name. Yesterday I thought I need another try. I tried googling for some time and read through all its…
-1
votes
1 answer

Why does ToStringBuilder work inconsistently?

In the following code, why do the two lines containing System.out.println(person); yield different outputs? The second line indirectly calls the method Job.toString yielding the string "Manager", but the first line mysteriously does not yielding…
-1
votes
1 answer

Commons-lang-2.6.jar and FilteringClassLoader Issue

This is in continuation of Despite having commons-lang included in pom, getting exception java.lang.NoSuchMethodError:org.apache.commons.lang.StringUtils.join I have the following in weblogic-application.xml
Jacob
  • 14,463
  • 65
  • 207
  • 320
-1
votes
2 answers

regarding ReflectionToStringBuilder.toString(this);

The following method is to implement toString public String toString() { return ReflectionToStringBuilder.toString(this); } How to understand the parameter this used by toString, what does it stand for here? Besides, why do we need to implement…
user297850
  • 7,705
  • 17
  • 54
  • 76
-4
votes
2 answers

Extracting a substring based on second occurence using Java - substringBetween() function

I have the following string "If this is good and if that is bad". The requirement is to extract the string "that" from the main string. Using substringBetween(mainString, "If", "is") returns the string "this". Could you please help in extracting…
1 2 3 4 5
6