In Java 1.4 and below, there were two basic ways to define new types: through classes and interfaces. For most object-oriented programming, this would seem to be enough. The problem is that there are still some very specific cases where neither is these is sufficient, most commonly when one needs to define a finite set of allowed values for a specific data type. For instance, one might want a type called Grade that can only be assigned values of A, B, C, D, F, or Incomplete. Any other values are illegal for this type. This sort of construct is possible prior to Tiger, but it takes a lot of work, and there are still some significant problems.
Related white papers
ADF Faces and JSF - Q&A BOF Session
This webcast is a question and answer session on ADF Faces and JSF.
Programming the Smallest Java Card Platform
The Java Card is the smallest Java platform and available on millions of smart cards including some of the Subscriber Identity Module (SIM) cards used by GSM telephone operators. The...
Create Ajax-Style Architectures With the IBM Web 2.0 Feature Pack
This paper shows the user how a Java 2 Platform, Enterprise Edition (J2EE) application was enhanced with an Ajax-style architecture by using the IBM WebSphere Application Server Feature Pack for...
The Java Virtual Appliance--No OS Required
This free white paper reveals how a new Java virtualization approach can result in a streamlined "Java Virtual Appliance" that lets you leverage your current hardware for years--without the usual...
BEA WebLogic Operations Control: Application Virtualization for Enterprise Java
In this free white paper, learn how to make your computing resources more flexible, responsive, and highly available--all by deploying a management framework to proactively address key Java virtualization challenges....
Enterprise Java Virtualization--Understanding the TCO Implications
In this free executive brief, understand the most important TCO factors for a virtualized enterprise Java application, as well as the benefits of eliminating the OS layer. Then, learn more...
Fairfield Residential LLC Improves Information Access With Flexible Human Capital Management Solution
Fairfield Residential LLC is a leader in the multi-family home industry and consistently ranks among the largest multi-family home developers, builders, and redevelopers nationwide. Fairfield Residential LLC wanted to facilitate...

