01: /*
02: * Copyright (C) 2005 Joe Walnes.
03: * Copyright (C) 2006, 2007, 2008 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 06. April 2005 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.converters.enums;
13:
14: enum PolymorphicEnum implements Fruit {
15: A() {
16: public String fruit() {
17: return "apple";
18: }
19: },
20: B() {
21: public String fruit() {
22: return "banana";
23: }
24: };
25: }
|