/*
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * $Id$
 */

package com.sun.ts.tests.jaxrs.spec.resource.valueofandfromstring;

/**
 * If both methods are present then valueOf MUST be used unless the type is an
 * enum in which case fromString MUST be used.
 */

public enum EnumWithFromStringAndValueOf {
	FROMSTRING, VALUEOF;
	public static EnumWithFromStringAndValueOf fromString(String string) {
		return FROMSTRING;
	}
}
