enum Enum1
{
COND_1,
COND_2
}
enum EnumA
{
COND_A,
COND_B
}
class Ideone
{
{
final Enum1 var1 = Enum1.COND_2;
final EnumA varA = EnumA.COND_B;
class Tester {
boolean t(Enum1 v1, EnumA vA) {
return var1 == v1 && varA == vA;
}
};
Tester tes = new Tester();
if (tes.t(Enum1.COND_1, EnumA.COND_A)) {
} else if (tes.t(Enum1.COND_1, EnumA.COND_B)) {
} else if (tes.t(Enum1.COND_2, EnumA.COND_A)) {
} else if (tes.t(Enum1.COND_2, EnumA.COND_B)) {
}
}
}
ZW51bSBFbnVtMQp7CiAgICBDT05EXzEsCiAgICBDT05EXzIKfQplbnVtIEVudW1BCnsKICAgIENPTkRfQSwKICAgIENPTkRfQgp9CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZmluYWwgRW51bTEgdmFyMSA9IEVudW0xLkNPTkRfMjsKCQlmaW5hbCBFbnVtQSB2YXJBID0gRW51bUEuQ09ORF9COwoJCQoJCWNsYXNzIFRlc3RlciB7CgkJCWJvb2xlYW4gdChFbnVtMSB2MSwgRW51bUEgdkEpIHsKCQkJCXJldHVybiB2YXIxID09IHYxICYmIHZhckEgPT0gdkE7CgkJCX0KCQl9OwoJCQoJCVRlc3RlciB0ZXMgPSBuZXcgVGVzdGVyKCk7CgkJCgkJaWYgKHRlcy50KEVudW0xLkNPTkRfMSwgRW51bUEuQ09ORF9BKSkgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIlciKTsKCQl9IGVsc2UgaWYgKHRlcy50KEVudW0xLkNPTkRfMSwgRW51bUEuQ09ORF9CKSkgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIlgiKTsKCQl9IGVsc2UgaWYgKHRlcy50KEVudW0xLkNPTkRfMiwgRW51bUEuQ09ORF9BKSkgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIlkiKTsKCQl9IGVsc2UgaWYgKHRlcy50KEVudW0xLkNPTkRfMiwgRW51bUEuQ09ORF9CKSkgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIloiKTsKCQl9CgoJfQp9