|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Constants
A marker interface for classes that define constants.
We often have to define constants in our code. The new Typesafe Enumeration facility in Java 1.5 removes the need for many of these constants; however when interfacing to other programming systems, defining data formats, and other similar activities constants are still very useful.
Classes which define constants should obey the following rules:
Lib)The "import static" facility provided in Java 1.5 makes it possible to include constants into another class's namespace without having to inherit from the Constants implementation.
A skeletal implementation is provided in skeletons/java/SkeletonConstants.java for your convenience and pleasure.
Copyright 2006 Partner Software, Inc.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||