* pas2kni: Added Enum.equals(int) to the Java part.

git-svn-id: trunk@34634 -
This commit is contained in:
yury 2016-10-06 10:21:04 +00:00
parent 9727f289b1
commit 26ffffa683

View File

@ -1851,6 +1851,7 @@ begin
Fjs.WriteLn('public int Value;');
Fjs.WriteLn('public int Ord() { return Value; }');
Fjs.WriteLn('@Override public boolean equals(Object o) { return (o instanceof Integer) && Value == (Integer)o; }');
Fjs.WriteLn('public boolean equals(int v) { return Value == v; }');
Fjs.WriteLn('@Override public int hashCode() { return Value; }');
Fjs.DecI;
Fjs.WriteLn('}');