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