blob: fffa83198c4f8493cd8637b4377a8409239b8f3b [file] [log] [blame]
package p;
enum A {
ONE {
String getKey() {
return "eis";
}
boolean longerNameThan(A other) {
return false;
}
},
BIG {
String getKey() {
return "riesig";
}
boolean longerNameThan(A other) {
return other != BIG;
}
};
abstract boolean longerNameThan(A a);
}