1. INTRODUCTION
The Lang Component contains a set of Java classes that provide
a basic set of common utility code on top of the standard Java classes.
The following principal classes are included:
- Main package - A package for the manipulation of basic Java classes
- ArrayUtils - Helper for manipulating arrays.
- BitField - A class to assist with manipulating bits.
- BooleanUtils - Helper for boolean and java.lang.Boolean.
- CharEncoding - Character encoding names required of every implementation of the Java platform.
- CharRange - A range of characters.
- CharSet - A set of characters.
- CharSetUtils - Methods for dealing with CharSets, which are sets of characters such as [a-z] and [abcdez].
- CharUtils - Helper for operations on char primities and Character objects.
- ClassUtils - Helper for manipulating java.lang.Class objects.
- ObjectUtils - Helper for java.lang.Object.
- RandomStringUtils - Helper for creating randomised Strings.
- SerializationUtils - Helper for serializing Objects.
- StringEscapeUtils - Utility for escaping and unescaping Strings.
- StringUtils - Helper for java.lang.String.
- SystemUtils - Utility class defining the Java system properties.
- Validate - A class to simplify method argument validation.
- WordUtils - Utility for working with words.
- Builder package - A package for the creation of equals, hashCode, compareTo and toString methods.
- ToStringBuilder - Helper for building toString methods.
- EqualsBuilder - Helper for building equals methods.
- HashCodeBuilder - Helper for building hashCode methods.
- CompareToBuilder - Helper for building compareTo methods.
- ReflectionToStringBuilder - Helper for building toString methods using reflection.
- ToStringStyle - Controls string formatting for ToStringBuilder.
- StandardToStringStyle - Works with ToStringBuilder to create a toString.
- Enums package - A package for the creation of enumerated types. Note: The package was previously named Enum.
- EnumUtils - Helper for manipulating enumerated types.
- Enum - Abstract superclass for enumerated types to extend.
- ValuedEnum - Superclass for enumerated types with an integer constant.
- Exception package - A package for the creation and manipulation of nested exceptions.
- ExceptionUtils - Helper for manipulating exceptions.
- NestableException - An exception that supports a nested exception.
- NestableRuntimeException - An exception that supports a nested exception.
- NestableError - An exception that supports a nested exception.
- Math package - A package for simple business (not scientific) maths classes.
- DoubleRange - Represents an inclusive range of doubles.
- FloatRange - Represents an inclusive range of floats.
- Fraction - A fraction.
- IntRange - Represents an inclusive range of ints.
- JVMRandom - An implementation of Random that does its best to appear to sit on top of java.lang.Math's private Random class.
- LongRange - Represents an inclusive range of longs.
- NumberRange - Represents an inclusive range of Number objects of the same type.
- NumberUtils - Helper for java.lang.Number and its subclasses.
- RandomUtils - A utility class for working with random numbers.
- Range - A range of numbers, of which there are classes representing Numbers, ints, doubles, longs and floats.
- Mutable package - A package for typed mutable wrappers to primitive values and Object.
- MutableByte - A mutable byte wrapper.
- MutableDouble - A mutable double wrapper.
- MutableFloat - A mutable float wrapper.
- MutableInt - A mutable int wrapper.
- MutableLong - A mutable long wrapper.
- MutableObject - A mutable Object wrapper.
- MutableShort - A mutable short wrapper.
- Time package - A package for date/time related utilities.
- DateFormatUtils - Aids in formatting Dates.
- DateUtils - Aids in manipulating Dates.
- DurationFormatUtils - Duration formatting utilities and constants.
- FastDateFormat - Optimised version of SimpleDateFormat.
- StopWatch - Records durations, represented by milliseconds.
2. DEPENDENCIES
The Lang component is dependent upon the following external
components for development and use:
3. RELEASE INFO
Current Release:
Version 2.1
Planned Next Release:
Undetermined
4. KNOWN ISSUES
5. ACTION ITEMS
Want to help? Here's some "to do" items the team has identified as possibly being in scope for Lang.
Note that all are still under discussion, so please mail the list before actioning.
- DateRange/Duration class.
- CloneUtils - utility class to enable cloning via various different mechanisms.
- StringUtils.reverseSplit(String, String delim, int count). Should basically be a 'reverseArray(reverseDelimitedString(split(txt, delim, count)))'.
- AStringBuffer - A StringBuffer implementation with additional methods from StringUtils.
- O(n) - Document all algorithm-implementing methods with the order. Possibly with an O(n) on the end of each parameterm or with an @order tag.
- Money and Currency. Maybe separate project.
- Code examples - Document as many static methods as possible with example usage.
- Faster StringTokeniser - Is Java's slow?
- StringUtilsNPE - A StringUtils that doesn't like nulls.
6. COMMITTERS
The following individuals are the primary developers and maintainers of this
component. Developers who plan to use Lang in their own
projects are encouraged to collaborate on the future development of this
component to ensure that it continues to meet a variety of needs.