mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-24 14:26:37 +07:00
40 lines
689 B
Java
40 lines
689 B
Java
package enums;
|
|
|
|
public abstract enum OurEnumWithConstantsAndStaticFields2 {
|
|
A {
|
|
void foo() {
|
|
//To change body of implemented methods use File | Settings | File Templates.
|
|
}
|
|
},
|
|
B {
|
|
void foo() {
|
|
//To change body of implemented methods use File | Settings | File Templates.
|
|
}
|
|
|
|
},
|
|
C(10)
|
|
;
|
|
|
|
public static final int A1 = 10;
|
|
void foo() {}
|
|
|
|
public OurEnum() {
|
|
|
|
}
|
|
{
|
|
Enum<OurEnum> a = A;
|
|
OurEnum value = A;
|
|
switch(value) {
|
|
case A:
|
|
break;
|
|
case
|
|
}
|
|
|
|
int i = 10;
|
|
switch(i) {
|
|
case A1
|
|
}
|
|
}
|
|
}
|
|
}
|