aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/Enum.java
blob: 9968b457a452ca4b878bc605f385b1e63b6e8418 (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
36
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() {
	}
}