mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 23:50:23 +02:00
* pas2kni: Added Enum.equals(int) to the Java part.
git-svn-id: trunk@34634 -
This commit is contained in:
parent
9727f289b1
commit
26ffffa683
@ -1851,6 +1851,7 @@ begin
|
|||||||
Fjs.WriteLn('public int Value;');
|
Fjs.WriteLn('public int Value;');
|
||||||
Fjs.WriteLn('public int Ord() { return 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('@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.WriteLn('@Override public int hashCode() { return Value; }');
|
||||||
Fjs.DecI;
|
Fjs.DecI;
|
||||||
Fjs.WriteLn('}');
|
Fjs.WriteLn('}');
|
||||||
|
Loading…
Reference in New Issue
Block a user