Package Name | Comment |
org.apache.commons.lang |
Provides highly reusable static utility methods, chiefly concerned
with adding value to {@link java.lang} and other standard core classes.
@since 1.0
|
org.apache.commons.lang.builder |
Assists in creating consistent equals(Object) , toString() ,
hashCode() , and compareTo(Object) methods.
@see java.lang.Object#equals(Object)
@see java.lang.Object#toString()
@see java.lang.Object#hashCode()
@see java.lang.Comparable#compareTo(Object)
@since 1.0
|
org.apache.commons.lang.enum |
Deprecated and replaced by {@link org.apache.commons.lang.enums}
and will be removed in version 3.0.
All classes in this package are deprecated and repackaged to {@link org.apache.commons.lang.enums}
since enum is a Java 1.5 keyword.
Provides an implementation of the C style enum in the Java world.
The classic example being an RGB color enumeration.
public final class ColorEnum extends Enum {
public static final ColorEnum RED = new ColorEnum("Red");
public static final ColorEnum GREEN = new ColorEnum("Green");
public static final ColorEnum BLUE = new ColorEnum("Blue");
private ColorEnum(String color) {
super(color);
}
public static ColorEnum getEnum(String color) {
return (ColorEnum) getEnum(ColorEnum.class, color);
}
public static Map getEnumMap() {
return getEnumMap(ColorEnum.class);
}
public static List getEnumList() {
return getEnumList(ColorEnum.class);
}
public static Iterator iterator() {
return iterator(ColorEnum.class);
}
}
@since 1.0
|
org.apache.commons.lang.enums |
Provides an implementation of the C style enum in the Java world.
The classic example being an RGB color enumeration.
public final class ColorEnum extends Enum {
public static final ColorEnum RED = new ColorEnum("Red");
public static final ColorEnum GREEN = new ColorEnum("Green");
public static final ColorEnum BLUE = new ColorEnum("Blue");
private ColorEnum(String color) {
super(color);
}
public static ColorEnum getEnum(String color) {
return (ColorEnum) getEnum(ColorEnum.class, color);
}
public static Map getEnumMap() {
return getEnumMap(ColorEnum.class);
}
public static List getEnumList() {
return getEnumList(ColorEnum.class);
}
public static Iterator iterator() {
return iterator(ColorEnum.class);
}
}
@since 2.1
|
org.apache.commons.lang.exception |
Provides JDK 1.4 style Nested Exception functionality for those on prior Java
versions.
Includes a static utility to create version independent Nested
Exception which can handle JDK 1.4 Exceptions as well as others.
Lastly, {@link org.apache.commons.lang.exception.ExceptionUtils}
also contains Throwable manipulation and examination routines.
@since 1.0
|
org.apache.commons.lang.math |
Extends {@link java.math} for business mathematical classes. This package is intended for business
mathematical use, not scientific use.
@since 2.0
|
org.apache.commons.lang.mutable |
Provides typed mutable wrappers to primitive values and Object.
@since 2.1
|
org.apache.commons.lang.text |
Provides classes for handling and manipulating text, partly as an extension to {@link java.text}.
The classes in this package are, for the most part, intended to be instantiated.
(ie. they are not utility classes with lots of static methods)
@since 2.1
|
org.apache.commons.lang.time |
Provides classes and methods to work with dates and durations.
This includes:
DateUtils - a set of static utility methods for working with dates
FastDateFormat - a replacement for SimpleDateFormat that is fast and thread-safe
DateFormatUtils - a formatting class for dates
StopWatch - a duration timer
@since 2.0
|