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