org.apache.commons.lang.enums
Class NestBroken
java.lang.Object
org.apache.commons.lang.enums.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RED
public static final NestBroken.ColorEnum RED
GREEN
public static final NestBroken.ColorEnum GREEN
BLUE
public static final NestBroken.ColorEnum BLUE
NestBroken
public NestBroken()
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.