This is the way Jabaco handles enums:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Enum WithValues
First = 1
Second = 2
Third = 3
Fourth = 4
Seventh = 7
End Enum
Enum WithoutValues
Zero
One
Two
Three
Four
End Enum
Public Sub Command1_Click()
MsgBox WithValues.Third
MsgBox WithoutValues.Two
End Sub
|
Java Enums and Jabaco Enums are incompatible, because Java implemented Enums in Java 7 - a lot later, then Jabaco have implemented it.
Greatings
theuserbl
This is the way Jabaco handles enums:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Enum WithValues
First = 1
Second = 2
Third = 3
Fourth = 4
Seventh = 7
End Enum
Enum WithoutValues
Zero
One
Two
Three
Four
End Enum
Public Sub Command1_Click()
MsgBox WithValues.Third
MsgBox WithoutValues.Two
End Sub
|
Java Enums and Jabaco Enums are incompatible, because Java implemented Enums in Java 7 - a lot later, then Jabaco have implemented it.
Greatings
theuserbl
theuserbl,
Thanks, I know how to write enums in Jabaco. I'm just not clear on the structure of an enum type, which implements an interface. How would
public static enum RelTypes implements RelationshipType
{
RELATE_TO;
}
be implemented in Java, after creating a class and specifying RelationshipType as the superclass?