![]() |
Utility classes for Java CodeThis project is a collection of utility classes for Java programmers. These classes supplement the classes found in java.util and in the JDK collections classes. This document presents the highlights of the util classes and also provides information on checking out the code.The complete API documentation can be found at http://www.mozilla.org/projects/blackwood/java-util/api/. HighlightsAssert
if (Assert.enabled && Assert.assert(mytest(), "my test failed")); Such usage prevents not only mytest() from being executed if assertions are disabled but also the assert method itself, and some compilers can remove the entire statement if assertions are disabled.
ParameterCheck
Typical usage: ParameterCheck.nonNull(myParameter); This verifies that myParameter is not null, throwing an IllegalArgumentException if it is.
Ed Burns Last modified: Wed Jul 28 17:52:30 PDT 1999 |
|
|
Copyright © 1998-2000 The Mozilla Organization.
Last modified July 30, 1999. |
|