From b57e9b6fd4d496329ec540f3714dc1ca18138aad Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Mon, 9 Jun 2008 06:48:45 +0000 Subject: [PATCH] Fixing the docs as per LANG-442 - the href's were not working correctly git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@664635 13f79535-47bb-0310-9956-ffa450edef68 --- xdocs/userguide.xml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/xdocs/userguide.xml b/xdocs/userguide.xml index c3fa9a852..f8298de23 100644 --- a/xdocs/userguide.xml +++ b/xdocs/userguide.xml @@ -32,19 +32,18 @@ limitations under the License.

Users Guide


[Description] - [lang.*] - [lang.builder.*] - [lang.enums.*] - [lang.exception.*] - [lang.math.*] - [lang.mutable.*] - [lang.text.*] - [lang.time.*] + [lang.*] + [lang.builder.*] + [lang.enums.*] + [lang.exception.*] + [lang.math.*] + [lang.mutable.*] + [lang.text.*] + [lang.time.*]

-

The Commons Lang library provides much needed additions to the standard JDK's java.lang package. Very generic, very reusable components for everyday use.

The top level package contains various Utils classes, whilst there are various subpackages including enums, exception and builder. Using the Utils classes is generally simplicity itself. They are the equivalent of global functions in another language, a collection of stand-alone, thread-safe, static methods. In contrast, subpackages may contain interfaces which may have to be implemented or classes which may need to be extended to get the full functionality from the code. They may, however, contain more global-like functions.

@@ -53,7 +52,6 @@ limitations under the License.

Before we begin, it's a good time to mention the Utils classes. They all contain empty public constructors with warnings not to use. This may seem an odd thing to do, but it allows tools like Velocity to access the class as if it were a bean. In other words, yes we know about private constructors.

-

Lang has a series of String utilities. The first is StringUtils, oodles and oodles of functions which tweak, transform, squeeze and cuddle java.lang.Strings. In addition to StringUtils, there are a series of other String manipulating classes; RandomStringUtils, StringEscapeUtils and Tokenizer. RandomStringUtils speaks for itself. It's provides ways in which to generate pieces of text, such as might be used for default passwords. StringEscapeUtils contains methods to escape and unescape Java, JavaScript, HTML, XML and SQL. Tokenizer is an improved alternative to java.util.StringTokenizer.

@@ -116,7 +114,6 @@ limitations under the License.
-
+

(Formerly lang.enum.*)

Enums are an old C thing. Very useful. One of the major uses is to give type to your constants, and even more, to give them order. For example:

A simple Enum
@@ -161,7 +158,6 @@ public final class ColorEnum extends Enum {

The enums package used to be the enum package, but with Java 5 giving us an enum keyword, the move to the enums package name was necessary and the old enum package was deprecated.

-