aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/Enum.java
blob: dd738b5b22edbeab0c455768daf83d17f2ededb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
enum Ranks {
	CLUBS,
	HEARTS,
	DIAMONDS,
	SPADES;
}
enum Complex {
	RED("ff0000"),
	GREEN("00ff00"),
	BLUE("0000f");
	private final String webColour;
	Complex(String webColour) {
		this.webColour = webColour;
	}
	public String getWebColour() {
		return webColour;
	}
}
enum Complexer {
	RED {
		public void foo() {
		}
		public void bar() {
		}
	},
	GREEN("foo") {
		public void foo() {
		}
	};
	public abstract void foo();
	Complexer(String colour) {
	}
	Complexer() {
	}
}