org.apache.commons.lang.enum
Class NestBroken

java.lang.Object
  extended byorg.apache.commons.lang.enum.NestBroken

public final class NestBroken
extends java.lang.Object

Color enumeration which demonstrates how to break the enum system.

The class loader sees the two classes here as independent - the enum class is nested, not an inner class. Calling getEnumList() on ColorEnum will return an empty list, unless and until the NestBroken class is referenced.

Version:
$Id: NestBroken.java 437554 2006-08-28 06:21:41Z bayard $
Author:
Stephen Colebourne

Nested Class Summary
static class NestBroken.ColorEnum
           
 
Field Summary
static NestBroken.ColorEnum BLUE
           
static NestBroken.ColorEnum GREEN
           
static NestBroken.ColorEnum RED
           
 
Constructor Summary
NestBroken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RED

public static final NestBroken.ColorEnum RED

GREEN

public static final NestBroken.ColorEnum GREEN

BLUE

public static final NestBroken.ColorEnum BLUE
Constructor Detail

NestBroken

public NestBroken()


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.