Thrown when an object is an instance of an unexpected type (a class or interface).
This exception supplements the standard IllegalArgumentException
by providing a more semantically rich description of the problem.
IllegalClassException represents the case where a method takes
in a genericly typed parameter like Object (typically because it has to due to some
other interface it implements), but this implementation only actually accepts a specific
type, for example String.
This class tries to handle null input gracefully.
An exception will generally not be thrown for a null input.
Each method documents its behaviour in more detail.
StringUtils handles null input Strings quietly.
That is to say that a null input will return null.
Where a boolean or int is being returned
details vary by method.
A side effect of the null handling is that a
NullPointerException should be considered a bug in
StringUtils (except for deprecated methods).
Methods in this class give sample code to explain their operation.
The symbol * is used to indicate any input including null.
Unit tests
org.apache.commons.lang.SystemUtils .
Only limited testing can be performed.
author: Stephen Colebourne author: Tetsuya Kaneuchi author: Gary D.
This class tries to handle null input gracefully.
An exception will not be thrown for a null input.
Each method documents its behaviour in more detail.
author: Apache Jakarta Velocity author: Stephen Colebourne author: Henning P.